Horde_Share throws exceptions.
authorJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 22:12:27 +0000 (23:12 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 23:17:11 +0000 (00:17 +0100)
turba/scripts/upgrades/public_to_horde_share.php

index 443f005..0243bce 100755 (executable)
@@ -59,11 +59,7 @@ if (!$sourceKey) {
 
 // Create the new share.
 $owner_uid = strval(new Horde_Support_Randomid());
-$share = &$turba_shares->newShare($GLOBALS['registry']->getAuth(), $sourceKey . ':' . $owner_uid);
-if ($share instanceof Horde_Share_Exception) {
-    var_dump($share);
-    exit;
-}
+$share = $turba_shares->newShare($GLOBALS['registry']->getAuth(), $sourceKey . ':' . $owner_uid);
 $share->set('owner', $owner);
 $share->set('name', $title);
 $share->set('perm_default', Horde_Perms::SHOW | Horde_Perms::READ);