2
0
forked from Wavyzz/dolibarr

Fix: function "split" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-20 13:14:44 +00:00
parent e11f56a10b
commit 01291c4a7c
74 changed files with 166 additions and 163 deletions

View File

@@ -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) {