diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-02-18 22:37:36 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-02-18 22:37:36 +0100 |
commit | b10a73f0c1cedb67a43d515caaac3d383d8d2368 (patch) | |
tree | 20b591fc2a48ac8a94537a22d9b07a30d41920c8 /ratatoeskr/sys | |
parent | 757adffdf0dfd912a5bd877ed915ca446b1bc973 (diff) | |
download | ratatoeskr-cms-b10a73f0c1cedb67a43d515caaac3d383d8d2368.tar.gz ratatoeskr-cms-b10a73f0c1cedb67a43d515caaac3d383d8d2368.tar.bz2 ratatoeskr-cms-b10a73f0c1cedb67a43d515caaac3d383d8d2368.zip |
Fixed a buggy SQL-Query in Section::get_articles.
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r-- | ratatoeskr/sys/models.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |