From: Joe Date: Fri, 22 Jul 2022 22:47:07 +0000 (+0200) Subject: php 8. strpos(): Passing null to parameter #1 ($haystack) of type string is deprecate... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=d81405411c4b336cbe3b2894ae719b13fc86a721 php 8. strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated. Fixed. --- diff --git a/includes/date_functions.inc b/includes/date_functions.inc index f80bb271..2538f79d 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -350,7 +350,8 @@ function sql2date($date_) global $SysPrefs; //for MySQL dates are in the format YYYY-mm-dd - + if ($date_ == null) + return ""; if (strpos($date_, "/")) { // In MySQL it could be either / or - list($year, $month, $day) = explode("/", $date_);