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

index 5229092..8148116 100644 (file)
@@ -60,13 +60,12 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             require_once 'System.php';
             static $tmpdir = false;
             if (!$tmpdir) {
-                    $tmpdir  = System::mktemp("-d remote_upload");
+                $tmpdir  = System::mktemp("-d remote_upload");
             }
             
             $path = $tmpdir . '/' . basename($q['_remote_upload']);
-            $fetch  = false;
+            
             if(!file_exists($path)){
-                $fetch = true;
                 // use HTTP_Request...
                file_put_contents($path, file_get_contents($q['_remote_upload'])); 
             }