From 1e8b94478ecfe9837752ae5d173fdc9cc5583d6f Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 13 Feb 2011 11:44:53 +0000 Subject: [PATCH] GetArray is get_col with the new database API --- contrib/favorites/main.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/favorites/main.php b/contrib/favorites/main.php index 6f99088e..f6c6ef5b 100644 --- a/contrib/favorites/main.php +++ b/contrib/favorites/main.php @@ -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(); } } ?>