DataObjects/Images.php
authorEdward <edward@roojs.com>
Wed, 26 Jun 2013 11:11:32 +0000 (19:11 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Jun 2013 11:11:32 +0000 (19:11 +0800)
DataObjects/Images.php

index 363dacd..2e4cc3d 100644 (file)
@@ -64,7 +64,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             }
             
             $path = $tmpdir . '/' . basename($q['_remote_upload']);
+            $fetch  = false;
             if(!file_exists($path)){
+                $fetch = true;
                file_put_contents($path, file_get_contents($q['_remote_upload'])); 
             }