aboutsummaryrefslogtreecommitdiffstats
path: root/Controller.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-10-12 20:49:48 +0300
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-10-12 20:49:48 +0300
commit2e445c73f777d4587aa3eda9e457d258a2482de8 (patch)
treec958e36272c50b1411d3ec31c703c6629b9f9872 /Controller.php
parent2402d55fa294d7907535f7464798431e85ca9973 (diff)
downloadmain-2e445c73f777d4587aa3eda9e457d258a2482de8.tar.gz
main-2e445c73f777d4587aa3eda9e457d258a2482de8.tar.bz2
main-2e445c73f777d4587aa3eda9e457d258a2482de8.zip
App::db() fix in Controller
Diffstat (limited to 'Controller.php')
-rw-r--r--Controller.php3
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);
}