projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc8de04
)
php 8. strpos(): Passing null to parameter #1 ($haystack) of type string is deprecate...
author
Joe
<joe.hunt.consulting@gmail.com>
Fri, 22 Jul 2022 22:47:07 +0000
(
00:47
+0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Fri, 22 Jul 2022 22:47:07 +0000
(
00:47
+0200)
includes/date_functions.inc
patch
|
blob
|
history
diff --git
a/includes/date_functions.inc
b/includes/date_functions.inc
index f80bb2713e2564ef1597cf5d7818ea03ffbb4fa7..2538f79d65f3edc24c031ae23f176a5359e10592 100644
(file)
--- 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_);