DataObjects/Images.php
authoredward <edward@roojs.com>
Thu, 21 Jan 2016 06:40:12 +0000 (14:40 +0800)
committeredward <edward@roojs.com>
Thu, 21 Jan 2016 06:40:12 +0000 (14:40 +0800)
DataObjects/Images.php

index 4aeda34..fa610d6 100644 (file)
@@ -658,7 +658,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             return false;
         }
         
-        if (empty($this->id) && !empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) {
+        if (!empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) {
             $img  = DB_DataObject::factory('Images');
             $img->onid = $this->onid;
             $img->ontable = $this->ontable;