From: rabuzarus Date: Mon, 25 Jul 2016 09:46:14 +0000 (+0200) Subject: dbm.php - is_result should be a static function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4bef0971738a7e9e40df52770d75c092f3cc87f;p=friendica.git 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. --- diff --git a/include/dbm.php b/include/dbm.php index 7c8c9b8c14..fdd9f40e76 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -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); } }