projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91bb601
)
DataObjects/Images.php
author
edward
<edward@roojs.com>
Thu, 21 Jan 2016 06:40:03 +0000
(14:40 +0800)
committer
edward
<edward@roojs.com>
Thu, 21 Jan 2016 06:40:03 +0000
(14:40 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
fa610d6
..
4aeda34
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-658,7
+658,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
return false;
}
- if (!empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) {
+ if (
empty($this->id) &&
!empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) {
$img = DB_DataObject::factory('Images');
$img->onid = $this->onid;
$img->ontable = $this->ontable;