diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 17:02:39 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 17:02:39 +0200 |
commit | e837927ad573d1c8fbcecc1759859d6a3465c691 (patch) | |
tree | df9a2c18f8b1f57e2b8e1f95a3c777bda8ab7800 /lib/private/db.php | |
parent | 47ecfd98a39e596c8f47dd9a6b14ece4e651f685 (diff) | |
download | nextcloud-server-e837927ad573d1c8fbcecc1759859d6a3465c691.tar.gz nextcloud-server-e837927ad573d1c8fbcecc1759859d6a3465c691.zip |
fix followup issues with unneeded parameters
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index 673ad894b66..98df1c73714 100644 --- a/lib/private/db.php +++ b/lib/private/db.php @@ -290,11 +290,11 @@ class OC_DB { public static function raiseExceptionOnError($result, $message = null) { if(self::isError($result)) { if ($message === null) { - $message = self::getErrorMessage($result); + $message = self::getErrorMessage(); } else { - $message .= ', Root cause:' . self::getErrorMessage($result); + $message .= ', Root cause:' . self::getErrorMessage(); } - throw new \OC\DatabaseException($message, self::getErrorCode($result)); + throw new \OC\DatabaseException($message, self::getErrorCode()); } } |