diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-27 09:19:29 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-27 09:19:29 +0200 |
commit | 78112fa3ee94f7f29f842f82fac992c9e6bd236f (patch) | |
tree | 8badae5afbbe541b7e315a23cadc95da7f47b1b9 /Db.php | |
parent | 64cfbcf3dc766a5bbe80b74072c4686fd956bc53 (diff) | |
download | main-78112fa3ee94f7f29f842f82fac992c9e6bd236f.tar.gz main-78112fa3ee94f7f29f842f82fac992c9e6bd236f.tar.bz2 main-78112fa3ee94f7f29f842f82fac992c9e6bd236f.zip |
More fixes
Diffstat (limited to 'Db.php')
-rw-r--r-- | Db.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,7 +54,7 @@ class Db * Execute an SQL query * @return mixed */ - public function query($sql, $data = null) + public static function query($sql, $data = null) { if (!$data) { $data = array(); @@ -104,9 +104,9 @@ class Db } - public function fetch($sql, $data = null) + public static function fetch($sql, $data = null) { - $stmt = DB::query($sql, $data); + $stmt = self::query($sql, $data); return $stmt->fetchAll(PDO::FETCH_ASSOC); } |