projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e7313a7
)
fixed compatibility with PHP 5.2 and simplify code a bit
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 22 Apr 2012 06:56:25 +0000 (08:56 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 22 Apr 2012 06:57:54 +0000 (08:57 +0200)
lib/Twig/Error.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Error.php
b/lib/Twig/Error.php
index
a2ffd35
..
e32c5c9
100644
(file)
--- a/
lib/Twig/Error.php
+++ b/
lib/Twig/Error.php
@@
-172,7
+172,7
@@
class Twig_Error extends Exception
$file = $r->getFileName();
$exceptions = array($e = $this);
- while ($e = $e->getPrevious()) {
+ while (method_exists($e, 'getPrevious') && $e = $e->getPrevious()) {
$exceptions[] = $e;
}