274,9 → 274,13 |
if ($object_id == '') throw new OIDplusException(_L('SUPOID logger mask requires OID')); |
$obj = OIDplusObject::parse($object_id); |
if ($obj) { |
$parent = $obj->getParent()->nodeId(); |
if ($objParent = $obj->getParent()) { |
$parent = $objParent->nodeId(); |
$objects[] = array($severity, $parent); |
} else { |
//throw new OIDplusException(_L('%1 has no parent',$object_id)); |
} |
} else { |
throw new OIDplusException(_L('SUPOID logger mask: Invalid object %1',$object_id)); |
} |
} |
317,11 → 321,15 |
if ($obj->userHasParentalWriteRights($ra)) $users[] = array($severity_online, $ra->raEmail()); |
} |
} else { |
// $users[] = array($severity, $obj->getParent()->getRa()->raEmail()); |
if ($objParent = $obj->getParent()) { |
// $users[] = array($severity, $objParent->getRa()->raEmail()); |
foreach (OIDplusRA::getAllRAs() as $ra) { |
if ($obj->userHasParentalWriteRights($ra)) $users[] = array($severity, $ra->raEmail()); |
} |
} else { |
//throw new OIDplusException(_L('%1 has no parent, therefore also no parent RA',$object_id)); |
} |
} |
} else { |
throw new OIDplusException(_L('SUPOIDRA logger mask: Invalid object "%1"',$object_id)); |
} |