Browse Source

fix bug #466878 if no folder is select to un/subscribe

centaurix 24 years ago
parent
commit
ec5298c302
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/folders_subscribe.php

+ 4 - 1
src/folders_subscribe.php

@@ -32,6 +32,9 @@
          header("Location: $location/folders.php?success=unsubscribe");
       }
    }
+   if (!isset($mailbox)) {
+         header("Location: $location/folders.php");
+   }
    sqimap_logout($imapConnection);
 
    /*
@@ -53,4 +56,4 @@
    echo "</CENTER>";
    echo "</BODY></HTML>";
    */
-?>
+?>