]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Photo.php
Use DBA::exists() in Photo::exists()
[friendica.git] / src / Model / Photo.php
index 7eb7bb26accfb5983250ef5cfd5a6a8a77c8a962..fe84d08a4768a474d0421e48f6c751d3d7a344fe 100644 (file)
@@ -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);
        }