Some bug
Posted: Sun Oct 29, 2006 11:00 am
I found a tiny bug in the following project but I am not sure how to tell the project leader.
http://dev.cmsmadesimple.org/projects/lastmodpages/
The latest article of my website is not shown because of the following code
$query = "SELECT * FROM ".cms_db_prefix()."content WHERE active=1 ORDER BY modified_date DESC LIMIT 1,".$number;
I changed it to
$query = "SELECT * FROM ".cms_db_prefix()."content WHERE active=1 ORDER BY modified_date DESC LIMIT 0,".$number;
Thanks for the great code.
http://dev.cmsmadesimple.org/projects/lastmodpages/
The latest article of my website is not shown because of the following code
$query = "SELECT * FROM ".cms_db_prefix()."content WHERE active=1 ORDER BY modified_date DESC LIMIT 1,".$number;
I changed it to
$query = "SELECT * FROM ".cms_db_prefix()."content WHERE active=1 ORDER BY modified_date DESC LIMIT 0,".$number;
Thanks for the great code.