* Added code to show text/html messages (immediately after text/plain and
[squirrelmail.git] / src / delete_message.php
index 966578e0f9ee123c7e9a417664b8f13ffa213089..05e488993ba4752c4c62580cdeb7252b03b05ff4 100644 (file)
@@ -33,7 +33,7 @@
       sqimap_mailbox_expunge($imapConnection, $mailbox, true);
 
    $location = get_location();
-   if ($where && $what)
+   if (isset($where) && isset($what))
       header ("Location: $location/search.php?where=".urlencode($where)."&what=".urlencode($what)."&mailbox=".urlencode($mailbox));
    else   
       header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=".urlencode($mailbox));