From c78b8f9928ca4c87f5260a17737b2226962c00da Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 16 Dec 2010 23:12:27 +0100 Subject: [PATCH] Horde_Share throws exceptions. --- turba/scripts/upgrades/public_to_horde_share.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/turba/scripts/upgrades/public_to_horde_share.php b/turba/scripts/upgrades/public_to_horde_share.php index 443f0056a..0243bce02 100755 --- a/turba/scripts/upgrades/public_to_horde_share.php +++ b/turba/scripts/upgrades/public_to_horde_share.php @@ -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); -- 2.11.0