Added some missing includes.
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 5 Feb 2001 09:28:11 +0000 (09:28 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 5 Feb 2001 09:28:11 +0000 (09:28 +0000)
Initialize some vars to avoid warnings from PHP.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1052 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addrbook_popup.php
src/addrbook_search.php
src/addrbook_search_html.php

index 6ba634a..4373db8 100644 (file)
@@ -12,6 +12,8 @@
 
    session_start();
 
+   if (!isset($strings_php))
+      include("../functions/strings.php");
    if (!isset($i18n_php))
       include('../functions/i18n.php');
    if (!isset($config_php))
index cb2767e..cda2f1b 100644 (file)
@@ -128,6 +128,8 @@ function bcc_address($addr) {
 
    session_start();
    
+   if (!isset($strings_php))
+      include("../functions/strings.php");
    if (!isset($i18n_php))
       include('../functions/i18n.php');
 
@@ -160,6 +162,10 @@ function bcc_address($addr) {
 
    displayHtmlHeader();
 
+   // Initialize vars
+   if(!isset($query)) $query = "";
+   if(!isset($show))  $show  = "";
+
    // Choose correct colors for top and bottom frame
    if($show == 'form') {
       echo "<BODY BGCOLOR=\"$color[3]\" TEXT=\"$color[6]\" ";
index fae1d4f..3e1c696 100644 (file)
           htmlspecialchars($addrquery));
 
    // List all backends to allow the user to choose where to search
+   if(!isset($backend)) $backend = "";
    if($abook->numbackends > 1) {
       printf("<STRONG>%s</STRONG>&nbsp;<SELECT NAME=backend>\n", 
              _("in"));