Details
Description
In cPanel, it's possible to receive an "Undefined property: stdClass::domain" error.
See https://www.blesta.com/forums/index.php?/topic/13624-error-adding-product-to-basket-cpanel-module/
It looks like cPanel::getClientAddFields should check whether all input $vars properties exist before attempting to use them. In this case, it appears there is an expression:
$this->Html->ifSet($vars->cpanel_domain, $vars->domain),
... that should also check whether $vars->domain is set, e.g.:
$this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)),