projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e4106
)
Prevents error when displaying site errors.
author
Stéphane Jacob
<sj@m4x.org>
Thu, 4 Nov 2010 11:33:48 +0000
(12:33 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Thu, 4 Nov 2010 11:33:48 +0000
(12:33 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/plerrorreport.php
patch
|
blob
|
blame
|
history
diff --git
a/classes/plerrorreport.php
b/classes/plerrorreport.php
index
520acf0
..
194cd1b
100644
(file)
--- a/
classes/plerrorreport.php
+++ b/
classes/plerrorreport.php
@@
-74,7
+74,12
@@
class PlErrorReportIterator implements PlIterator
public function __construct()
{
- $this->file = fopen(Platal::globals()->spoolroot . '/spool/tmp/site_errors', 'r');
+ $file = Platal::globals()->spoolroot . '/spool/tmp/site_errors';
+ if (file_exists($file)) {
+ $this->file = fopen($file, 'r');
+ } else {
+ $this->file = null;
+ }
}
public function next()