dbm.php - is_result should be a static function

there was a notice in php.out - `Non-static method dbm::is_result() should not be called statically`
This should fix it.
This commit is contained in:
rabuzarus 2016-07-25 11:46:14 +02:00 committed by GitHub
parent 18cbe9f6ff
commit e4bef09717
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class dbm {
* @param $array mixed A filled array with at least one entry
* @return Whether $array is a filled array
*/
public function is_result($array) {
public static function is_result($array) {
return (is_array($array) && count($array) > 0);
}
}