From: Alan Knowles Date: Thu, 20 Aug 2015 02:14:12 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=16e54e9e78f92ef5b89b1b4b6679a30598d4d211 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 47d834c7..55d0105a 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -166,7 +166,12 @@ class Pman_Core_NotifySend extends Pman 'ontable' => $w->ontable, 'onid' => $w->onid, ); - $lar[strtolower($w->person_table).'_id'] = $w->{strtolower($w->person_table).'_id'}; + // only newer version of the database us this.. + $personid_col = strtolower($w->person_table).'_id'; + if (isset($w->{$personid_col})) { + $lar[$personid_col] = $w->{$personid_col}; + } + $l->setFrom( $lar ); $l->whereAdd('id != '. $w->id);