forked from Wavyzz/dolibarr
Fix: function "split" is deprecated since php 5.3.0
This commit is contained in:
@@ -76,7 +76,7 @@ function GetInt4d($data, $pos) {
|
||||
// http://uk.php.net/manual/en/function.getdate.php
|
||||
function gmgetdate($ts = null){
|
||||
$k = array('seconds','minutes','hours','mday','wday','mon','year','yday','weekday','month',0);
|
||||
return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
|
||||
return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));
|
||||
}
|
||||
|
||||
// Added for PHP4 compatibility
|
||||
@@ -841,7 +841,7 @@ class Spreadsheet_Excel_Reader {
|
||||
|
||||
// Custom pattern can be POSITIVE;NEGATIVE;ZERO
|
||||
// The "text" option as 4th parameter is not handled
|
||||
$parts = split(";",$format);
|
||||
$parts = explode(";",$format);
|
||||
$pattern = $parts[0];
|
||||
// Negative pattern
|
||||
if (count($parts)>2 && $num==0) {
|
||||
|
||||
Reference in New Issue
Block a user