projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a44b70
)
Horde_Share throws exceptions.
author
Jan Schneider
<jan@horde.org>
Thu, 16 Dec 2010 22:12:27 +0000
(23:12 +0100)
committer
Jan Schneider
<jan@horde.org>
Thu, 16 Dec 2010 23:17:11 +0000
(
00:17
+0100)
turba/scripts/upgrades/public_to_horde_share.php
patch
|
blob
|
history
diff --git
a/turba/scripts/upgrades/public_to_horde_share.php
b/turba/scripts/upgrades/public_to_horde_share.php
index
443f005
..
0243bce
100755
(executable)
--- 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);