Skip to content

Commit 932240a

Browse files
author
Alexis Mousset
committed
Fix for the PHP 5.3 compatibility issue #1
1 parent 14e79ea commit 932240a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/datasources/WeatherMapDataSource_zabbix.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ function ReadData($targetstring, &$map, &$item)
4545

4646
wm_debug ("Zabbix ReadData: Found (".$host.",".$in.",".$out.")\n");
4747

48-
$in_value = $this->zabbixApi->getItemLastValue($host, $zabbix_key, $in)["lastvalue"];
4948
$raw_out_value = $this->zabbixApi->getItemLastValue($host, $zabbix_key, $out);
49+
$raw_in_value = $this->zabbixApi->getItemLastValue($host, $zabbix_key, $in);
50+
$in_value = $raw_in_value["lastvalue"];
5051
$out_value = $raw_out_value["lastvalue"];
5152
$data_time = $raw_out_value["lastclock"];
5253

0 commit comments

Comments
 (0)