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.
2022.09-rc
rabuzarus 2016-07-25 11:46:14 +02:00 zatwierdzone przez GitHub
rodzic 18cbe9f6ff
commit e4bef09717
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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