check acutal file
authorAlan <alan@roojs.com>
Wed, 10 Nov 2021 03:34:57 +0000 (11:34 +0800)
committerAlan <alan@roojs.com>
Wed, 10 Nov 2021 03:34:57 +0000 (11:34 +0800)
DataObjects/Events.php

index a00fefe..a5f48db 100644 (file)
@@ -646,11 +646,11 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         $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;
             }
         }