From 10e29da8be495cce0cea7aa35942bd2a92b868d8 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 19 Oct 2012 17:21:23 +0200 Subject: Use self::prepare() instead of self::$connection->prepare. --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/db.php') diff --git a/lib/db.php b/lib/db.php index f32e8549ce9..ff06ec3e00b 100644 --- a/lib/db.php +++ b/lib/db.php @@ -577,7 +577,7 @@ class OC_DB { //OC_Log::write('core', __METHOD__ . ', type: ' . $type . ', query: ' . $query, OC_Log::DEBUG); try { - $result=self::$connection->prepare($query); + $result = self::prepare($query); } catch(PDOException $e) { $entry = 'DB Error: "'.$e->getMessage().'"
'; $entry .= 'Offending command was: '.$query.'
'; -- cgit v1.2.3