Преглед на файлове

script creates two frames. there is no need to display same error in both.

tokul преди 20 години
родител
ревизия
82a7b5bbbc
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/addrbook_search.php

+ 3 - 2
src/addrbook_search.php

@@ -205,8 +205,9 @@ if (empty($query) && empty($show) && empty($listall)) {
     exit;
 }
 
-/* Initialize addressbook */
-$abook = addressbook_init();
+/* Initialize addressbook, show init errors only in bottom frame */
+$showerr=($show=='form' ? false : true);
+$abook = addressbook_init($showerr);
 
 /* Create search form */
 if ($show == 'form' && empty($listall)) {