aboutsummaryrefslogtreecommitdiffstats
path: root/Db.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-11-08 23:35:59 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-11-08 23:35:59 +0200
commit71eebcefb57763451d3cc2749d2ed9e181887157 (patch)
tree1059305e84d5f5889e8306df0302398e736931ab /Db.php
parentf0bb7133827d4e36067333f70ba046e08cd53cd9 (diff)
downloadmain-71eebcefb57763451d3cc2749d2ed9e181887157.tar.gz
main-71eebcefb57763451d3cc2749d2ed9e181887157.tar.bz2
main-71eebcefb57763451d3cc2749d2ed9e181887157.zip
Lots of fixes, better url parsing
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);