aboutsummaryrefslogtreecommitdiffstats
path: root/Controller.php
diff options
context:
space:
mode:
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);
}