ordered tags (and use the wrapped execute function)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@127 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
e6668f53d7
commit
593f7d55de
@ -75,7 +75,7 @@ class Image {
|
||||
if(!isset($this->tag_array)) {
|
||||
global $database;
|
||||
$this->tag_array = Array();
|
||||
$row = $database->db->Execute("SELECT * FROM tags WHERE image_id=?", array($this->id));
|
||||
$row = $database->Execute("SELECT * FROM tags WHERE image_id=? ORDER BY tag", array($this->id));
|
||||
while(!$row->EOF) {
|
||||
$this->tag_array[] = $row->fields['tag'];
|
||||
$row->MoveNext();
|
||||
|
Loading…
x
Reference in New Issue
Block a user