DataObjects/Images.php
authorEdward <edward@roojs.com>
Mon, 7 Jan 2013 06:45:30 +0000 (14:45 +0800)
committerEdward <edward@roojs.com>
Mon, 7 Jan 2013 06:45:30 +0000 (14:45 +0800)
DataObjects/Images.php

index 446fda1..9d7ee65 100644 (file)
@@ -113,7 +113,8 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         $f = $this->getStoreName();
         $dest = dirname($f);
         if (!file_exists($dest)) {
-            // currently this is 0775 due to problems using shared hosing (FTP)
+            // currently this is 0775 due to problems us
+            // ing shared hosing (FTP)
             // it makes all the files unaccessable..
             // you can normally solve this by giving the storedirectory better perms
             // if needed on a dedicated server..
@@ -240,7 +241,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         if ($this->id) {
             $this->beforeDelete();
         }
-        if ( empty($this->ontable)) {
+        if ( empty($this->ontable) && $this->ontable !== false) {
             $this->err = "Missing  ontable";
             return false;
         }