aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-13 13:14:00 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-13 13:14:00 +0200
commit31f7afe56adf8cae80b31d5a94cd37fc857bef9d (patch)
treed2f5be1c2dee18318303a6968761d96ee664164a /lib/template.php
parentf7dc07602b9f6dcc18e2256f88c4ad011547ab02 (diff)
downloadnextcloud-server-31f7afe56adf8cae80b31d5a94cd37fc857bef9d.tar.gz
nextcloud-server-31f7afe56adf8cae80b31d5a94cd37fc857bef9d.zip
PDOException has no previous(), oh the consistency ...
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php2
1 files changed, 1 insertions, 1 deletions
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 .= '<br/>Caused by: ';
if ($exception->getCode()) {
$error_msg .= '['.$exception->getCode().'] ';