DataObjects/Images.php
authorEdward <edward@roojs.com>
Mon, 15 Dec 2014 07:13:04 +0000 (15:13 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Dec 2014 07:13:04 +0000 (15:13 +0800)
DataObjects/Images.php

index 2b710c5..ecbb381 100644 (file)
@@ -357,7 +357,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         }
         
         $c = clone($this);
-        $c->whereAddIn($this->tableName() . '.ontable1', array( $obj->tableName(), $obj->__table) , 'string');
+        $c->whereAddIn($this->tableName() . '.ontable', array( $obj->tableName(), $obj->__table) , 'string');
         $c->onid = $obj->id;
         $c->autoJoin();
         if (!empty($mime_like)) {