projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Happy New Year!
[platal.git]
/
classes
/
plerrorreport.php
diff --git
a/classes/plerrorreport.php
b/classes/plerrorreport.php
index
520acf0
..
50afe41
100644
(file)
--- a/
classes/plerrorreport.php
+++ b/
classes/plerrorreport.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-74,7
+74,12
@@
class PlErrorReportIterator implements PlIterator
public function __construct()
{
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()
}
public function next()