DataObjects/Events.php
authorAlan <alan@roojs.com>
Wed, 9 Feb 2022 05:08:38 +0000 (13:08 +0800)
committerAlan <alan@roojs.com>
Wed, 9 Feb 2022 05:08:38 +0000 (13:08 +0800)
DataObjects/Events.php

index c863963..a04484c 100644 (file)
@@ -555,10 +555,11 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         
         
         $i=0;
-        $files = self::$files;
+        $files = array();
+          
          
-        $i = 0;
-        foreach ($_FILES as $k=>$f){
+        
+        foreach (array_merge($_FILES, self::$files) as $k=>$f){
             // does not handle any other file[] arrary very well..
             if (empty($f['tmp_name']) || !file_exists($f['tmp_name'])) {
                 continue;