DataObjects/Images.php
authoredward <edward@roojs.com>
Thu, 21 Jan 2016 05:24:19 +0000 (13:24 +0800)
committeredward <edward@roojs.com>
Thu, 21 Jan 2016 05:24:19 +0000 (13:24 +0800)
DataObjects/Images.php

index 22d929f..6a3527d 100644 (file)
@@ -644,7 +644,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
     
     function onUploadFromData($data, $roo)
     {
-        if (empty($filename) || empty($filetype) || empty($data)) {
+        if (empty($data)) {
             $this->err = "Missing file details";
             return false;
         }