2
0
forked from Wavyzz/dolibarr

Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-22 11:13:31 +00:00
parent 6558d01348
commit e420c6cc7c
29 changed files with 48 additions and 48 deletions

View File

@@ -102,8 +102,8 @@ if ($resql)
{
$property[$i]['istime']=false;
}
if (eregi('varchar',$property[$i]['type'])
|| eregi('text',$property[$i]['type']))
if (preg_match('/varchar/i',$property[$i]['type'])
|| preg_match('/text/i',$property[$i]['type']))
{
$property[$i]['ischar']=true;
}