projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4560697
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@roojs.com>
Wed, 14 Oct 2015 07:48:59 +0000
(15:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 14 Oct 2015 07:48:59 +0000
(15:48 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
da8a9f0
..
e5c17ee
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-52,7
+52,10
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
{
if ($set !== false) {
$this->person_table = is_object($set) ? $set->tableName() : '';
- $col = $this->person_table == "Person" ? 'person_id' : $person_table . '_id';
+
+ $person_table = empty($this->person_table) ? 'Person' : $this->person_table;
+ $col = $person_table == "Person" ? 'person_id' : $person_table . '_id';
+
$this->{$col} = is_object($set) ? $set->id : $set;
return;
}