From 4560697211f133fb9157ec641bca04be2c84a734 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Oct 2015 15:48:35 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 60b7c82b..da8a9f01 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -53,7 +53,7 @@ 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'; - $this->person_id = is_object($set) ? $set->id : $set; + $this->{$col} = is_object($set) ? $set->id : $set; return; } static $cache =array(); -- 2.39.2