forked from Wavyzz/dolibarr
Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
@@ -1436,7 +1436,7 @@ function _fact()
|
||||
$this->_advance();
|
||||
return $result;
|
||||
}
|
||||
elseif (eregi("^[A-Z0-9\xc0-\xdc\.]+$",$this->_current_token))
|
||||
elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$this->_current_token))
|
||||
{
|
||||
// if it's a function call
|
||||
$result = $this->_func();
|
||||
|
||||
Reference in New Issue
Block a user