diff --git a/op/op.EditComment.php b/op/op.EditComment.php index f0b96cfdf..b86b67af2 100644 --- a/op/op.EditComment.php +++ b/op/op.EditComment.php @@ -68,10 +68,14 @@ if (($oldcomment = $version->getComment()) != $comment) { $subject=mydmsDecodeString($subject); $message=mydmsDecodeString($message); - - $notifier->toList($user, $document->_notifyList["users"], $subject, $message); - foreach ($document->_notifyList["groups"] as $grp) { - $notifier->toGroup($user, $grp, $subject, $message); + + if(isset($document->_notifyList["users"])) { + $notifier->toList($user, $document->_notifyList["users"], $subject, $message); + } + if(isset($document->_notifyList["groups"])) { + foreach ($document->_notifyList["groups"] as $grp) { + $notifier->toGroup($user, $grp, $subject, $message); + } } } }