X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsearch.php;h=7eb98a183faa78e51be51356758c4bff51f4fb4d;hb=16a973d70a51ec3e3a171b87fcf0fc2fd5de5351;hp=570c5c7c6801cfaa44722e3d090c925dc5df0a6d;hpb=10455998ff36ac23c25799914656fd4f13c14b6f;p=squirrelmail.git
diff --git a/src/search.php b/src/search.php
index 570c5c7c..7eb98a18 100644
--- a/src/search.php
+++ b/src/search.php
@@ -1,4 +1,7 @@
";
echo " \n";
echo "
\n";
+ if (!isset($what))
+ $what = "";
$what_disp = ereg_replace(",", " ", $what);
$what_disp = str_replace("\\\\", "\\", $what_disp);
$what_disp = str_replace("\\\"", "\"", $what_disp);
@@ -75,22 +80,22 @@
echo " | \n";
echo " \n";
@@ -103,7 +108,7 @@
echo "";
echo " | ";
do_hook("search_after_form");
- if ($where && $what) {
+ if (isset($where) && $where && isset($what) && $what) {
sqimap_mailbox_select($imapConnection, $mailbox);
sqimap_search($imapConnection, $where, $what, $mailbox, $color);
}