From 32686e29b2c7c301162c2613d44d7dc6593fb7e6 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 24 Oct 2018 13:28:06 +0000 Subject: [PATCH] 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 --- dblayeroo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index 7db82f6..13a3796 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -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]);