frontend: bugfix

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@249 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
jan 2008-03-29 13:14:49 +00:00
parent 940ee2daf0
commit bf8800c380
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Wind{
} }
$maxData = null; $maxData = null;
if (($nowData = Cacher::getCache("WindMax_ID_".$this->sensId, 3)) == false){ if (($maxData = Cacher::getCache("WindMax_ID_".$this->sensId, 3)) == false){
/* Max und Min-Werte bestimmen */ /* Max und Min-Werte bestimmen */
$maxQuery = "SELECT geschw as wind, richt as dir, to_char(timestamp, 'DD.MM.YYYY HH24:MI') as text_timestamp FROM ".$this->table." WHERE sens_id=".$this->sensId." AND geschw=(SELECT max(geschw) FROM ".$this->table." WHERE sens_id=".$this->sensId.") ORDER BY timestamp DESC LIMIT 1"; $maxQuery = "SELECT geschw as wind, richt as dir, to_char(timestamp, 'DD.MM.YYYY HH24:MI') as text_timestamp FROM ".$this->table." WHERE sens_id=".$this->sensId." AND geschw=(SELECT max(geschw) FROM ".$this->table." WHERE sens_id=".$this->sensId.") ORDER BY timestamp DESC LIMIT 1";
$maxData = $this->connection->fetchQueryResultLine($maxQuery); $maxData = $this->connection->fetchQueryResultLine($maxQuery);