]> git.mxchange.org Git - friendica.git/commitdiff
Use DBA::exists() in Photo::exists()
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 13 Dec 2018 18:24:50 +0000 (19:24 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:12:31 +0000 (09:12 -0500)
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);
        }