From: Jan Schneider Date: Thu, 3 Dec 2009 00:29:46 +0000 (+0100) Subject: Allow share owners to be empty, in preparation for system shares (Request #2059). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f445d8031426da7c6c9bb5a68a100154aac8e113;p=horde.git Allow share owners to be empty, in preparation for system shares (Request #2059). --- 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) {