[Phphtmllib-devel] SF.net SVN: phphtmllib:[3280] trunk/open2300/lib/modules/home/page
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-11 03:53:10
|
Revision: 3280 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3280&view=rev Author: hemna Date: 2009-11-11 03:53:03 +0000 (Wed, 11 Nov 2009) Log Message: ----------- added limit Modified Paths: -------------- trunk/open2300/lib/modules/home/page/HomePage.inc trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-10-16 04:16:21 UTC (rev 3279) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-11-11 03:53:03 UTC (rev 3280) @@ -16,7 +16,7 @@ function __construct() { parent::__construct('Hemna WX Station'); - $this->wx = weatherDataObject::find("1=1 order by datetime desc"); + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); } public function request_vars() { Modified: trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc 2009-10-16 04:16:21 UTC (rev 3279) +++ trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc 2009-11-11 03:53:03 UTC (rev 3280) @@ -24,7 +24,7 @@ $container = Container::factory(); $container->add(' ', BRtag::factory(3)); - $wx = weatherDataObject::find("1=1 order by datetime desc"); + $wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); $left_div = new DIVtag(array('id'=> 'idLeftContent')); @@ -46,4 +46,4 @@ return $container; } } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |