From: <tib...@us...> - 2007-08-06 22:15:42
|
Update of /cvsroot/tikiwiki/tiki/lib/rankings In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10857/lib/rankings Modified Files: ranklib.php Log Message: changed the limit into a adodb way not braking anny non mysql databases Index: ranklib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/rankings/ranklib.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- ranklib.php 6 Aug 2007 21:58:28 -0000 1.21 +++ ranklib.php 6 Aug 2007 22:15:41 -0000 1.22 @@ -118,11 +118,11 @@ $query = "select * from `tiki_comments`,`tiki_forums` where `object`=".$this->sql_cast("`forumId`","string")." and `objectType` = 'forum' - order by `commentDate` desc - limit ".$limit; + order by `commentDate` desc"; + //limit ".$limit; //todo(tibi needs help): make this database proof!! - $result = $this->query($query,array()); + $result = $this->query($query,array(),$limit); $ret = array(); $count = 0; while (($res = $result->fetchRow()) && $count < $limit) { |