aboutsummaryrefslogtreecommitdiffstats
path: root/Db.php
diff options
context:
space:
mode:
Diffstat (limited to 'Db.php')
-rw-r--r--Db.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Db.php b/Db.php
index f961614..d57af10 100644
--- a/Db.php
+++ b/Db.php
@@ -84,7 +84,7 @@ class Db
}
// Select statements need the query results
- if (preg_match('/^select/i', $sql)) {
+ if (preg_match('/^SELECT/i', $sql)) {
return $stmt;
}
@@ -104,6 +104,9 @@ class Db
}
+ /**
+ *
+ */
public static function fetch($sql, $data = null)
{
$stmt = self::query($sql, $data);