- fixed php warnings

This commit is contained in:
steinm 2011-01-20 12:46:06 +00:00
parent 3e1d956fba
commit d1b7971e3b

View File

@ -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);
}
}
}
}