[Phphtmllib-devel] SF.net SVN: phphtmllib:[3262] trunk/open2300/lib/modules/home/widgets
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-10-14 07:35:13
|
Revision: 3262 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3262&view=rev Author: hemna Date: 2009-10-14 07:35:04 +0000 (Wed, 14 Oct 2009) Log Message: ----------- updated sql query Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-10-14 07:33:16 UTC (rev 3261) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-10-14 07:35:04 UTC (rev 3262) @@ -32,7 +32,7 @@ if ($wx == null) { //we don't have the current conditions. //we need to get them - $this->wx = weatherDataObject::find("1=1 order by datetime desc"); + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); } else { $this->wx = $wx; } Modified: trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2009-10-14 07:33:16 UTC (rev 3261) +++ trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2009-10-14 07:35:04 UTC (rev 3262) @@ -32,7 +32,7 @@ if ($wx == null) { //we don't have the current conditions. //we need to get them - $this->wx = weatherDataObject::find("1=1 order by datetime desc"); + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); } else { $this->wx = $wx; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |