From f490507966bbc959f7a6269dcff1bbdf8e564af5 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 27 Oct 2018 16:03:06 +0000 Subject: [PATCH] dblayeroo : Exception must begin with \ git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4647 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index 1c821eb..8c85b83 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -120,7 +120,7 @@ class dblayeroo self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); } - catch (Exception $e) + catch (\Exception $e) { $this->DBException ("PDO error : ".$e->getMessage ()); } @@ -143,7 +143,7 @@ class dblayeroo self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); } - catch (Exception $e) + catch (\Exception $e) { $this->DBException ("PDO error : ".$e->getMessage ()); } @@ -176,7 +176,7 @@ class dblayeroo self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); } - catch (Exception $e) + catch (\Exception $e) { $this->DBException ("PDO error : ".$e->getMessage ()); } @@ -2460,7 +2460,7 @@ class dblayeroo case "UPDATE": $sql = "UPDATE $this->sep$this->tableprefix$this->table$this->sep"; if (empty ($this->setValues)) - $this-> DBException ("No values to set in UPDATE"); + $this->DBException ("No values to set in UPDATE"); $sql .= " SET "; $i = 0; foreach ($this->setValues as $key=>$val)