Bladeren bron

Fix typo "." instead of ";". selopts[-1] was concatenated with the string.
Initialize the array selopts.

Thijs Kinkhorst 20 jaren geleden
bovenliggende
commit
f7de275df0
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      src/addrbook_search.php

+ 4 - 3
src/addrbook_search.php

@@ -221,8 +221,9 @@ if ($show == 'form' && empty($listall)) {
 
     /* List all backends to allow the user to choose where to search */
     if ($abook->numbackends > 1) {
-        echo '<strong>' . _("in") . '</strong>&nbsp;'."\n".
-             $selopts['-1'] = _("All address books");
+        echo '<strong>' . _("in") . '</strong>&nbsp;'."\n";
+        $selopts = array();
+        $selopts['-1'] = _("All address books");
 
         $ret = $abook->get_backend_list();
         while (list($undef,$v) = each($ret)) {
@@ -308,4 +309,4 @@ if ($show == 'form' && empty($listall)) {
 
 }
 ?>
-</body></html>
+</body></html>