Rev 360 | Rev 419 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 360 | Rev 386 | ||
---|---|---|---|
Line 259... | Line 259... | ||
259 | throw new OIDplusException(_L('Invalid maskcode "%1" (Unknown severity "%2")',$maskcodes,$sev)); |
259 | throw new OIDplusException(_L('Invalid maskcode "%1" (Unknown severity "%2")',$maskcodes,$sev)); |
260 | } |
260 | } |
261 | } |
261 | } |
262 | 262 | ||
263 | // OID(x) Save log entry into the logbook of: Object "x" |
263 | // OID(x) Save log entry into the logbook of: Object "x" |
- | 264 | $m = array(); |
|
264 | if (preg_match('@^OID\((.+)\)$@ismU', $maskcode, $m)) { |
265 | if (preg_match('@^OID\((.+)\)$@ismU', $maskcode, $m)) { |
265 | $object_id = $m[1]; |
266 | $object_id = $m[1]; |
266 | $objects[] = array($severity, $object_id); |
267 | $objects[] = array($severity, $object_id); |
267 | if ($object_id == '') throw new OIDplusException(_L('OID logger mask requires OID')); |
268 | if ($object_id == '') throw new OIDplusException(_L('OID logger mask requires OID')); |
268 | } |
269 | } |