Use self::prepare() instead of self::$connection->prepare.

This commit is contained in:
Thomas Tanghus 2012-10-19 17:21:23 +02:00
parent 394e4e4d5f
commit 10e29da8be

View file

@ -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().'"<br />';
$entry .= 'Offending command was: '.$query.'<br />';