瀏覽代碼

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

centaurix 24 年之前
父節點
當前提交
ec5298c302
共有 1 個文件被更改,包括 4 次插入1 次删除
  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>";
    */
-?>
+?>