Fix XSS holes in generic options inputs, XSS hole in the SquirrelSpell plugin, and...
[squirrelmail.git] / templates / default / addressbook_search_form.tpl
index b9e25450576bc12fb4f0d5af22d44ffb8d5fe1d9..5f778f27110c883cde76cb5c2939f1117d34355f 100644 (file)
@@ -8,7 +8,7 @@
  *      $use_js   - boolean TRUE if we should use Javascript in the address book
  *      $backends - array containing list of all available backends.
  *
- * @copyright © 1999-2009 The SquirrelMail Project Team
+ * @copyright 1999-2011 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -66,7 +66,7 @@ extract($t);
      
    <input type="submit" name="listall" value=<?php echo '"'._("List all").'"'; ?> />
    <?php
-    if ($use_js) {
+    if ($javascript_on && $compose_addr_pop) {
         ?>
    &nbsp;&nbsp;
    <input type="submit" onclick="parent.close()" value=<?php echo '"'._("Close").'"'; ?> />