Browse Source

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

pull/6482/head
fabrixxm 2 years ago
committed by Hypolite Petovan
parent
commit
4e38bc8a0d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/Model/Photo.php

+ 4
- 4
src/Model/Photo.php 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
*/
public static function exists(array $conditions = [])
public static function exists(array $conditions)
{
return DBA::count("photo", $conditions) > 0;
return DBA::exists("photo", $conditions);
}


Loading…
Cancel
Save