summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-29 10:25:11 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-29 10:42:33 -0500
commit4c03d447a55950ee1ef6c4c914ec9fd9659dc95a (patch)
tree02f007e49d13e33fbf449beed20b0a6b8095d88f /lib/class/dba.class.php
parentb7c9678012aaeac44784ccf19598140bdf49d6ca (diff)
downloadampache-4c03d447a55950ee1ef6c4c914ec9fd9659dc95a.tar.gz
ampache-4c03d447a55950ee1ef6c4c914ec9fd9659dc95a.tar.bz2
ampache-4c03d447a55950ee1ef6c4c914ec9fd9659dc95a.zip
Use parameterised queries in Session
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index d432095c..16e6f593 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -55,6 +55,8 @@ class Dba {
* query
*/
public static function query($sql, $params) {
+ debug_event('Query', $sql . ' ' . json_encode($params), 6);
+
// Run the query
if ($params) {
$stmt = self::dbh()->prepare($sql);
@@ -64,8 +66,6 @@ class Dba {
$stmt = self::dbh()->query($sql);
}
- debug_event('Query', $sql . ' ' . json_encode($params), 6);
-
// Save the query, to make debug easier
self::$_sql = $sql;
self::$stats['query']++;