From 78112fa3ee94f7f29f842f82fac992c9e6bd236f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 27 Oct 2009 09:19:29 +0200 Subject: More fixes --- Db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Db.php') diff --git a/Db.php b/Db.php index e453955..730fcdf 100644 --- a/Db.php +++ b/Db.php @@ -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); } -- cgit v1.2.3