diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-12 20:49:48 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-12 20:49:48 +0300 |
commit | 2e445c73f777d4587aa3eda9e457d258a2482de8 (patch) | |
tree | c958e36272c50b1411d3ec31c703c6629b9f9872 /Controller.php | |
parent | 2402d55fa294d7907535f7464798431e85ca9973 (diff) | |
download | main-2e445c73f777d4587aa3eda9e457d258a2482de8.tar.gz main-2e445c73f777d4587aa3eda9e457d258a2482de8.tar.bz2 main-2e445c73f777d4587aa3eda9e457d258a2482de8.zip |
App::db() fix in Controller
Diffstat (limited to 'Controller.php')
-rw-r--r-- | Controller.php | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |