Use self::prepare() instead of self::$connection->prepare.
This commit is contained in:
parent
394e4e4d5f
commit
10e29da8be
1 changed files with 1 additions and 1 deletions
|
@ -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 />';
|
||||
|
|
Loading…
Reference in a new issue