Allow share owners to be empty, in preparation for system shares (Request #2059).
authorJan Schneider <jan@horde.org>
Thu, 3 Dec 2009 00:29:46 +0000 (01:29 +0100)
committerJan Schneider <jan@horde.org>
Thu, 3 Dec 2009 00:29:46 +0000 (01:29 +0100)
turba/lib/Api.php

index 70f0a07..6016dca 100644 (file)
@@ -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) {