fix, make uploads work...

git-svn-id: file:///home/shish/svn/shimmie2/trunk@1073 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-10-12 01:10:33 +00:00
parent c68df68195
commit bf32003200

View File

@ -42,7 +42,7 @@ class Image {
public static function by_hash(Config $config, Database $database, $hash) {
assert(is_string($hash));
$image = null;
$row = $this->db->GetRow("SELECT images.* FROM images WHERE hash=?", array($hash));
$row = $database->db->GetRow("SELECT images.* FROM images WHERE hash=?", array($hash));
return ($row ? new Image($row) : null);
}