From 4e38bc8a0d208d643c529c12797daa0acfcdc77f Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 13 Dec 2018 19:24:50 +0100 Subject: [PATCH] Use DBA::exists() in Photo::exists() --- src/Model/Photo.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 7eb7bb26ac..fe84d08a47 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -145,15 +145,15 @@ class Photo extends BaseObject } /** - * @brief Check if photo with given resource id exists + * @brief Check if photo with given conditions exists * - * @param array $conditions Array of extra conditions. Optional + * @param array $conditions Array of extra conditions * * @return boolean */ - public static function exists(array $conditions = []) + public static function exists(array $conditions) { - return DBA::count("photo", $conditions) > 0; + return DBA::exists("photo", $conditions); }