From: Nicolas Boisselier Date: Thu, 30 Jun 2016 16:25:32 +0000 (+0100) Subject: str_match ignore case X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=284aac2d16115e7ef3ce16be907e095cd95059ab;p=nb.git str_match ignore case --- diff --git a/lib/php/db.php b/lib/php/db.php index 15d755c6..1d26caa9 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -328,15 +328,10 @@ class Db extends nb { if (isset($this->tables)) return $this->tables; $this->tables = array(); -#debug((array)$this->conn->query("SELECT name,type FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%' ORDER BY name",PDO::FETCH_ASSOC)); -#debug($this->type('tables',true,$this->type)); foreach ($this->conn->query($this->type('tables',true,$this->type),PDO::FETCH_ASSOC) as $row) { $name = current($row); $this->tables[$name] = $this->table($name,$row); -#bye($this->tables); } -#bye($this->tables); - #return array_values($this->tables); return $this->tables; }