From: fabrixxm Date: Thu, 13 Dec 2018 18:24:50 +0000 (+0100) Subject: Use DBA::exists() in Photo::exists() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e38bc8a0d208d643c529c12797daa0acfcdc77f;p=friendica.git Use DBA::exists() in Photo::exists() --- 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); }