From b10a73f0c1cedb67a43d515caaac3d383d8d2368 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 18 Feb 2012 22:37:36 +0100 Subject: Fixed a buggy SQL-Query in Section::get_articles. --- ratatoeskr/sys/models.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/sys/models.php') diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 95824ec..fe80ce4 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -1602,7 +1602,7 @@ class Section extends BySQLRowEnabled public function get_articles() { $rv = array(); - $result = qdb("SELECT `id`, `urlname`, `title`, `text`, `excerpt`, `meta`, `custom`, `article_image`, `status`, `section`, `timestamp`, `allow_comments` FROM `PREFIX_articles` FROM `PREFIX_articles` WHERE `section` = %d", $this->id); + $result = qdb("SELECT `id`, `urlname`, `title`, `text`, `excerpt`, `meta`, `custom`, `article_image`, `status`, `section`, `timestamp`, `allow_comments` FROM `PREFIX_articles` WHERE `section` = %d", $this->id); while($sqlrow = mysql_fetch_assoc($result)) $rv[] = Article::by_sqlrow($sqlrow); return $rv; -- cgit v1.2.3-70-g09d2