projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44b0c51
)
DataObjects/Images.php
author
Alan Knowles
<alan@akbkhome.com>
Sun, 26 Feb 2012 14:59:30 +0000
(22:59 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 26 Feb 2012 14:59:30 +0000
(22:59 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
9e42888
..
b845c54
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-326,10
+326,15
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
function object($obj=false)
{
if ($obj === false) {
+ if (empty($this->ontable) || empty($this->onid)) {
+ return false;
+ }
$ret = DB_DataObject::factory($this->ontable);
$ret->get($this->onid);
return $ret;
}
+
+
$this->ontable = $obj->tableName();
$this->onid = $obj->id; /// assumes our nice standard of using ids..
return $obj;