From bf8f2e847f3a89490d5a0cc6ef1f5c3cde435d86 Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 9 Oct 2008 03:41:39 +0000 Subject: [PATCH] this is no longer the database (and we have a where started too) git-svn-id: file:///home/shish/svn/shimmie2/trunk@1063 7f39781d-f577-437e-ae19-be835c7a54ca --- core/image.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/image.class.php b/core/image.class.php index 907e64a3..c412331c 100644 --- a/core/image.class.php +++ b/core/image.class.php @@ -115,7 +115,7 @@ class Image { $tags[] = "id$gtlt{$this->id}"; $querylet = Image::build_search_querylet($this->config, $this->database, $tags); $querylet->append_sql(" ORDER BY images.id $dir LIMIT 1"); - $row = $this->db->GetRow($querylet->sql, $querylet->variables); + $row = $this->database->db->GetRow($querylet->sql, $querylet->variables); } return ($row ? new Image($row) : null); @@ -348,7 +348,7 @@ class Image { $query = new Querylet($sql); if(strlen($img_search->sql) > 0) { - $query->append_sql(" WHERE "); + $query->append_sql(" AND "); $query->append($img_search); } }