diff --git a/dblayer.php b/dblayer.php index d830d1f..d30bc91 100644 --- a/dblayer.php +++ b/dblayer.php @@ -64,6 +64,8 @@ class dblayer extends PDO { if ($this->db === null) throw new Exception ("Database not connected"); + if (!is_array ($datas)) + throw new Exception ("The datas provided to create are not array"); $datasOK = array (); // Check for missing parameters foreach ($this->fields as $key=>$params)