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
This commit is contained in:
parent
1d8999bf9c
commit
bf8f2e847f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user