From: Jörn Friedrich Dreyer Date: Thu, 13 Jun 2013 11:14:00 +0000 (+0200) Subject: PDOException has no previous(), oh the consistency ... X-Git-Tag: v6.0.0alpha2~638^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31f7afe56adf8cae80b31d5a94cd37fc857bef9d;p=nextcloud-server.git PDOException has no previous(), oh the consistency ... --- diff --git a/lib/template.php b/lib/template.php index 01f0fc28b60..ae9ea187445 100644 --- a/lib/template.php +++ b/lib/template.php @@ -547,7 +547,7 @@ class OC_Template{ $error_msg = '['.$exception->getCode().'] '.$error_msg; } $hint = $exception->getTraceAsString(); - while ($exception = $exception->previous()) { + while (method_exists($exception,'previous') && $exception = $exception->previous()) { $error_msg .= '
Caused by: '; if ($exception->getCode()) { $error_msg .= '['.$exception->getCode().'] ';