dblayeroo : do not generate an error if there is no parenthesis in parameter for types
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4623 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -1363,7 +1363,7 @@ class dblayeroo
|
||||
if (! key_exists ($field, $this->fields))
|
||||
$this->DBException ("Invalid setRealType provided : ".
|
||||
"field '$field' doesn't exists");
|
||||
list ($func, $param) = explode ("(", $realType);
|
||||
@list ($func, $param) = explode ("(", $realType);
|
||||
$func = trim ($func);
|
||||
$method = "checkRealType_".$func;
|
||||
if (! method_exists ($this, $method))
|
||||
@@ -2941,7 +2941,7 @@ class dblayeroo
|
||||
elseif (key_exists ($field, $this->realTypes))
|
||||
{
|
||||
$val = trim ($values[$field]);
|
||||
list ($func, $param) = explode ("(", $this->realTypes[$field]);
|
||||
@list ($func, $param) = explode ("(", $this->realTypes[$field]);
|
||||
$func = trim ($func);
|
||||
$method = "checkRealType_".$func;
|
||||
$res = $this->$method ($val, $this->realTypes[$field]);
|
||||
|
||||
Reference in New Issue
Block a user