aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-02-18 22:37:36 +0100
committerKevin Chabowski <kevin@kch42.de>2012-02-18 22:37:36 +0100
commitb10a73f0c1cedb67a43d515caaac3d383d8d2368 (patch)
tree20b591fc2a48ac8a94537a22d9b07a30d41920c8 /ratatoeskr
parent757adffdf0dfd912a5bd877ed915ca446b1bc973 (diff)
downloadratatoeskr-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')
-rw-r--r--ratatoeskr/sys/models.php2
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;