projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31df2e1
)
don't spit out an error from touch, we generate one ourselves anyways; don't output...
author
robert
<robert>
Fri, 13 May 2005 17:17:16 +0000
(17:17 +0000)
committer
robert
<robert>
Fri, 13 May 2005 17:17:16 +0000
(17:17 +0000)
include/classes/rrdstat.php-class
patch
|
blob
|
blame
|
history
diff --git
a/include/classes/rrdstat.php-class
b/include/classes/rrdstat.php-class
index 470a131ceac6ca214d4f531948589b07196abfdb..9e2a747b9da4e41b5b6847f135f3025dc8437ee5 100644
(file)
--- a/
include/classes/rrdstat.php-class
+++ b/
include/classes/rrdstat.php-class
@@
-23,7
+23,7
@@
class rrdstat {
if (!is_null($this->rrd_file)) {
if (!is_writeable($this->rrd_file)) {
if (!file_exists($this->rrd_file)) {
if (!is_null($this->rrd_file)) {
if (!is_writeable($this->rrd_file)) {
if (!file_exists($this->rrd_file)) {
- if (touch($this->rrd_file)) { $this->create(); }
+ if (
@
touch($this->rrd_file)) { $this->create(); }
else { trigger_error('RRD file can not be created', E_USER_WARNING); }
}
else {
else { trigger_error('RRD file can not be created', E_USER_WARNING); }
}
else {
@@
-500,7
+500,7
@@
class rrdstat {
$out .= '<h1>'.$ptitle.'</h1>';
if (!isset($pconf['show_update']) || $pconf['show_update']) {
$out .= '<h1>'.$ptitle.'</h1>';
if (!isset($pconf['show_update']) || $pconf['show_update']) {
- $out .= '<p class="last_up">Last Update: '.
date('Y-m-d H:i:s', $this->last_update(
)).'</p>';
+ $out .= '<p class="last_up">Last Update: '.
(is_null($this->last_update())?'unknown':date('Y-m-d H:i:s', $this->last_update()
)).'</p>';
}
if (in_array($this->status, array('ok','readonly'))) {
}
if (in_array($this->status, array('ok','readonly'))) {