-
Incident report
-
Resolution: Fixed
-
Blocker
-
1.8.1, 1.9.0 (alpha)
-
None
-
Linux CentOS 5.4, php-5.1.6, postgresql-8.4.2
Zabbix Server (daemon) v1.8 (revision 9377) (7 December 2009)
I have installed zabbix 1.8.0 rev 9377 (ZABBIX Sources: Pre-1.8.x (stable) 9380 18 Jan, 2010) and when I open Slide Shows (No slides defined), I have get error:
- Undefined variable: screenids[/var/www/vhosts/zabbix/html/include/screens.inc.php:225]
- Undefined variable: screenids[/var/www/vhosts/zabbix/html/include/screens.inc.php:231]
- Invalid argument supplied for foreach()[/var/www/vhosts/zabbix/html/include/screens.inc.php:231]
fixed:
— screens.inc.php-orig 2010-01-20 04:57:31.000000000 +0100
+++ screens.inc.php 2010-01-20 05:08:54.000000000 +0100
@@ -219,7 +219,7 @@
while($slide_data = DBfetch($db_screens))
-
+ if (!isset($screenids))$screenids = NULL;
$options = array(
'screenids' => $screenids
);
@@ -228,8 +228,10 @@
$screens = CScreen::get($options);
$screens = zbx_toHash($screens, 'screenid');
- foreach($screenids as $snum => $screenid){
- if(!isset($screens[$screenid])) return false;
+ if($screenids != NULL)Unknown macro: {+ foreach($screenids as $snum => $screenid){ + if(!isset($screens[$screenid])) return false; + } }}