function notifyEvent($event)
{
- DB_DataObject::DebugLevel(1);
+ //DB_DataObject::DebugLevel(1);
// see if there are any watches on events..
// notify everyone flagged except the person doing it...
// this is very basic logic... -
$watches = $w->fetchAll();
- print_R($watches);exit;
+ //print_R($watches);exit;
$nn = DB_DataObject::Factory('core_notify');
$nn->ontable = $event->on_table;
foreach($watches as $watch) {
if (!$watch->person_id) { // no people??? bugs in watch table
- $dom = explode(':',$watch->event);
+ $dom = explode(':',$watch->medium);
if (count($dom) != 2) {
continue;
}