GetArray is get_col with the new database API

This commit is contained in:
Shish 2011-02-13 11:44:53 +00:00
parent b37a5dd840
commit 1e8b94478e

View File

@ -171,11 +171,9 @@ class Favorites extends SimpleExtension {
private function list_persons_who_have_favorited($image) {
global $database;
$result = $database->execute(
return $database->get_col(
"SELECT name FROM users WHERE id IN (SELECT user_id FROM user_favorites WHERE image_id = :image_id) ORDER BY name",
array("image_id"=>$image->id));
return $result->GetArray();
}
}
?>