1
1
Fork 0

Use DBA::exists() in Photo::exists()

This commit is contained in:
fabrixxm 2018-12-13 19:24:50 +01:00 committed by Hypolite Petovan
parent f8d2f81d81
commit 4e38bc8a0d

View 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 * @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);
} }