From f445d8031426da7c6c9bb5a68a100154aac8e113 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 3 Dec 2009 01:29:46 +0100 Subject: [PATCH] Allow share owners to be empty, in preparation for system shares (Request #2059). --- turba/lib/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turba/lib/Api.php b/turba/lib/Api.php index 70f0a076d..6016dca38 100644 --- a/turba/lib/Api.php +++ b/turba/lib/Api.php @@ -195,7 +195,7 @@ class Turba_Api extends Horde_Registry_Api $shares = Turba::listShares(); $owners = array('global' => true); foreach ($shares as $share) { - $owners[$share->get('owner')] = true; + $owners[$share->get('owner') ? $share->get('owner') : '-system-'] = true; } foreach (array_keys($owners) as $owner) { -- 2.11.0