$date = date('/Y/m/d/', strtotime($this->event_when));
$file = $logdir. $date. $this->id . ".json";
- if (!file_exists(dirname($file))) {
+ if (!file_exists($file)) {
// try looking www-dir..
$file = $this->logDir('www-data'). $date. $this->id . ".json";
- if (!file_exists(dirname($file))) {
+ if (!file_exists($file)) {
return false;
}
}