Merge from FW_3, fix warnings.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 25 Jul 2009 16:27:16 +0000 (12:27 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 25 Jul 2009 16:27:51 +0000 (12:27 -0400)
turba/lib/api.php

index bcec2d6..36d3fca 100644 (file)
@@ -232,7 +232,7 @@ function _turba_removeUserData($user)
     }
 
     /* Only attempt share removal if we have shares configured */
-    if ($_SESSION['turba']['has_share']) {
+    if (!empty($_SESSION['turba']['has_share'])) {
         $shares = &$GLOBALS['turba_shares']->listShares(
             $user, PERMS_EDIT, $user);