From 18a886b0c083311d354df39166ba61eb9efe5e6a Mon Sep 17 00:00:00 2001 From: martinhaas <> Date: Mon, 15 Mar 2010 10:25:54 +0000 Subject: [PATCH] bugfix: different types of HMS added git-svn-id: https://svn.fhem.de/fhem/trunk@594 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm3/include/hms100.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/webfrontend/pgm3/include/hms100.php b/fhem/webfrontend/pgm3/include/hms100.php index f9e262e70..aecf148c1 100755 --- a/fhem/webfrontend/pgm3/include/hms100.php +++ b/fhem/webfrontend/pgm3/include/hms100.php @@ -24,7 +24,7 @@ if (! in_array($type,$supported_HMS)) show_error_type($imgmaxxhms,$imgmaxyhms,$t if ($DBUse=="1") { - $sqlquery=mysql_query("select timestamp from history where device='".$drawhms."' and (reading='data' or reading like '%_detect') order by timestamp desc limit 1"); + $sqlquery=mysql_query("select timestamp from history where device='".$drawhms."' and (reading='data' or reading like '% Detect') order by timestamp desc limit 1"); $query=mysql_fetch_object($sqlquery); $date=str_replace(" ","_",$query->timestamp); } @@ -85,7 +85,7 @@ if ($DBUse=="1") { if ($DBUse=="1") { $array=array(); - $sqlarray=mysql_query("select timestamp,event from history where device='".$drawhms."' and (reading='data' or reading like '%_detect') order by timestamp desc limit ".$logrotateHMSlines."") or die (mysql_error()); + $sqlarray=mysql_query("select timestamp,event from history where device='".$drawhms."' and (reading='data' or reading like '% Detect') order by timestamp desc limit ".$logrotateHMSlines."") or die (mysql_error()); while ( $row=mysql_fetch_object($sqlarray)) { $date=str_replace(" ","_",$row->timestamp);