projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b099ea5
)
DataObjects/Events.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 14 May 2012 04:16:13 +0000
(12:16 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 14 May 2012 04:16:13 +0000
(12:16 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
33a1903
..
dfc9e65
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-210,8
+210,9
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$pt->selectAdD('distinct(person_table) as person_table');
$pt->whereAdd('person_table IS NOT NULL AND LENGTH(person_table) > 0');
$tbls = $pt->fetchAll('person_table');
- if (!in_array('Person',$tbls)) {
- $tbls[] = 'Person';
+ $pers = DB_DataObject::Factory('Person');
+ if (!in_array($pers->tableName(),$tbls)) {
+ $tbls[] = $pers->tableName();
}
foreach($tbls as $tbl) {