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:
1a88a3e
)
PHP 7.X produces A non-numeric value encountered in \includes\date_functions.inc...
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 6 Mar 2019 21:55:17 +0000
(22:55 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 6 Mar 2019 21:55:17 +0000
(22:55 +0100)
includes/date_functions.inc
patch
|
blob
|
history
diff --git
a/includes/date_functions.inc
b/includes/date_functions.inc
index e90e2e781e6b37fdc5c819d666d7f7127a948e5f..f80bb2713e2564ef1597cf5d7818ea03ffbb4fa7 100644
(file)
--- a/
includes/date_functions.inc
+++ b/
includes/date_functions.inc
@@
-396,12
+396,12
@@
and converts to a yyyy/mm/dd format */
else // $how == 2 || $how == 5, YYYYMMDD or YYYYMmmDD
list($year, $month, $day) = explode($sep, $date_);
+ if ($how > 2)
+ {
+ global $tmonths;
+ $month = array_search($month, $tmonths);
+ }
if ($year+$day+$month) {
- if ($how > 2)
- {
- global $tmonths;
- $month = array_search($month, $tmonths);
- }
//to modify assumption in 2030
if ($SysPrefs->date_system == 0 || $SysPrefs->date_system == 3)
{