projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_company.php
[Pman.Core]
/
DataObjects
/
Core_watch.php
diff --git
a/DataObjects/Core_watch.php
b/DataObjects/Core_watch.php
index
568ea97
..
4a30b81
100644
(file)
--- a/
DataObjects/Core_watch.php
+++ b/
DataObjects/Core_watch.php
@@
-26,7
+26,7
@@
*
*
*/
*
*
*/
-require_once 'DB/DataObject.php';
+
class_exists('DB_DataObject') ? '' :
require_once 'DB/DataObject.php';
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
{
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
{
@@
-217,8
+217,8
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
function notifyEvent($event)
{
function notifyEvent($event)
{
- print_r($event);
- //DB_DataObject::DebugLevel(1);
+
//
print_r($event);
+
//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... -
// see if there are any watches on events..
// notify everyone flagged except the person doing it...
// this is very basic logic... -
@@
-235,8
+235,10
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
$w->event = $event->action;
$w->active = 1;
$w->event = $event->action;
$w->active = 1;
-
- $w->whereAdd('person_id != '. (int) $event->person_id);
+ // not sure why this is here... - it breaks on the reader article ->
+ if ($event->person_id) {
+ $w->whereAdd('person_id != '. (int) $event->person_id);
+ }
$watches = $w->fetchAll();
$watches = $w->fetchAll();