projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_notify.php
[Pman.Core]
/
DataObjects
/
Core_notify.php
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
40063d0
..
287e307
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-55,9
+55,11
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
return;
}
return;
}
- $person_table =
- $c = DB_DataObject::Factory('Person');
- $c->get($this->person_id);
+ $person_table = empty($this->person_table) ? 'Person' : $this->person_table;
+ $col = $person_table == "Person" ? 'person_id' : $person_table . '_id';
+
+ $c = DB_DataObject::Factory($person_table);
+ $c->get($col);
return $c;
}
return $c;
}