From 2e445c73f777d4587aa3eda9e457d258a2482de8 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 12 Oct 2009 20:49:48 +0300 Subject: App::db() fix in Controller --- Controller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Controller.php') diff --git a/Controller.php b/Controller.php index 568f192..4b16041 100644 --- a/Controller.php +++ b/Controller.php @@ -199,8 +199,7 @@ class Controller $sql = "SELECT $select FROM `{$parent}` WHERE `{$fkey}` = ?"; - $stmt = App::db()->prepare($sql); - $stmt->execute(array($parent_id)); + $stmt = DB::query($sql, array($parent_id)); $this->data[$i][$parent] = $stmt->fetchAll(PDO::FETCH_ASSOC); } -- cgit v1.2.3