GetArray is get_col with the new database API
This commit is contained in:
parent
b37a5dd840
commit
1e8b94478e
@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user