From: Joe Date: Mon, 6 Jun 2022 08:43:06 +0000 (+0200) Subject: php 8.1 Deprecated null parameters in functions. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ffc19f9a6c71002acacd8d72939b1c0e590c7178;p=fa-stable.git php 8.1 Deprecated null parameters in functions. Fixed. --- diff --git a/includes/packages.inc b/includes/packages.inc index 54d16abf..87febb33 100644 --- a/includes/packages.inc +++ b/includes/packages.inc @@ -708,9 +708,13 @@ function install_extension($pkg_name) */ function check_pkg_upgrade($current, $available) { + if ($available == NULL) + return false; preg_match_all('/[\d]+/', $available, $aver); if (!count($aver[0])) return false; + if ($current == NULL) + return true; preg_match_all('/[\d]+/', $current, $cver); if (!count($cver[0])) return true;