1
0
Fork 0

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

View file

@ -42,7 +42,7 @@ class dbm {
* @param $array mixed A filled array with at least one entry * @param $array mixed A filled array with at least one entry
* @return Whether $array is a filled array * @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); return (is_array($array) && count($array) > 0);
} }
} }