Bug #5264
closedServices Status widget crash after selecting hidden services
100%
Description
1) Add the Services Status widget to the dashboard
2) Open its settings tool
3) Select 1 or more services to hide and save
Warning: array_intersect(): Argument #2 is not an array in /usr/local/www/widgets/widgets/services_status.widget.php on line 50 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.1587 1258536 2. array_intersect() /usr/local/www/widgets/widgets/services_status.widget.php:50 Warning: implode(): Invalid arguments passed in /usr/local/www/widgets/widgets/services_status.widget.php on line 50 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.1598 1258760 2. implode() /usr/local/www/widgets/widgets/services_status.widget.php:50 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/widgets/widgets/services_status.widget.php:50) in /usr/local/www/widgets/widgets/services_status.widget.php on line 52 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.6941 1271392 2. header() /usr/local/www/widgets/widgets/services_status.widget.php:52
The "multiple" field seems to only be passing a string containing the last service in the list that is selected. The code assumes it is getting an array and dies trying to array_intersect() an aray and a string together.