From c91f5d5d77b55b1579b6020ad2dea3a8801eb106 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 29 Jan 2012 00:59:30 +0100 Subject: Fixed Image:all function (broken Query). --- ratatoeskr/sys/models.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 6729281..a4d7ebf 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -1894,7 +1894,7 @@ class Image extends BySQLRowEnabled public function all() { $rv = array(); - $result = qdb("SELECT `id` FROM `PREFIX_images` WHERE 1"); + $result = qdb("SELECT `id`, `name`, `file` FROM `PREFIX_images` WHERE 1"); while($sqlrow = mysql_fetch_assoc($result)) $rv[] = self::by_sqlrow($sqlrow); return $rv; -- cgit v1.2.3-70-g09d2