function logDir($user = false)
{
$ff = HTML_FlexyFramework::get();
- if ($user == false) {
+ if ($user === false) {
if (function_exists('posix_getpwuid')) {
$uinfo = posix_getpwuid( posix_getuid () );
$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;
}
}