fix bug #466878 if no folder is select to un/subscribe
authorcentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Nov 2001 23:49:46 +0000 (23:49 +0000)
committercentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Nov 2001 23:49:46 +0000 (23:49 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1683 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/folders_subscribe.php

index c2cb630..761d2e1 100644 (file)
@@ -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>";
    */
-?>
\ No newline at end of file
+?>