From 38a621dcf8cfdc7de85e49d3f7cbbe40cc19243a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 Jun 2008 14:33:14 -0400 Subject: fix assignment of omb stuff darcs-hash:20080602183314-84dde-1f81609b2eb0d628c0e6dfe5fea7e21d799bdb3d.gz --- lib/omb.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/omb.php b/lib/omb.php index ae7531ce8..fc873d0d5 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -86,6 +86,9 @@ function omb_service_uri($service) { } function omb_local_id($service) { + if (!$service) { + return NULL; + } $els = $service->getElements('LocalID'); return ($els) ? $els[0] : NULL; } -- cgit v1.2.3-54-g00ecf