Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.5.1
-
Fix Version/s: 4.5.2
-
Component/s: None
-
Labels:None
Description
Someone reported receiving this error when adding a server/module row in the ISPConfig module.
count(): Parameter must be an array or an object that implements Countable on line 72 in /path/to/components/modules/ispconfig/views/default/add_row.pdt
Tyson suggested we change line 72 from:
$num_servers = count($this->Html->ifSet($vars->name_servers));
to:
$num_servers = count($this->Html->ifSet($vars->name_servers, []));
Also resolve in edit_row