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

@@ -241,7 +241,7 @@ class DoliDb
function getIntVersion()
{
$version= $this->getVersion();
$vlist=split('[.-]',$version);
$vlist=preg_split('/[.-]/',$version);
if (strlen($vlist[1])==1){
$vlist[1]="0".$vlist[1];
}
@@ -258,7 +258,7 @@ class DoliDb
*/
function getVersionArray()
{
return split('\.',$this->getVersion());
return explode('.',$this->getVersion());
}
@@ -483,7 +483,7 @@ class DoliDb
if ($sortfield)
{
$return='';
$fields=split(',',$sortfield);
$fields=explode(',',$sortfield);
foreach($fields as $val)
{
if (! $return) $return.=' ORDER BY ';