Explorar o código

fixes possible search in address book issues

tokul %!s(int64=20) %!d(string=hai) anos
pai
achega
abd9b26d6d
Modificáronse 2 ficheiros con 9 adicións e 0 borrados
  1. 4 0
      src/addrbook_search.php
  2. 5 0
      src/addrbook_search_html.php

+ 4 - 0
src/addrbook_search.php

@@ -175,6 +175,10 @@ require_once('../functions/addressbook.php');
 
 displayHtmlHeader();
 
+/** set correct value of $default_charset */
+global $default_charset;
+set_my_charset();
+
 /* Initialize vars */
 if (!isset($query)) { $query = ''; }
 if (!isset($show))  { $show  = ''; }

+ 5 - 0
src/addrbook_search_html.php

@@ -173,6 +173,11 @@ if ($compose_new_win == '1') {
 else {
     displayPageHeader($color, $mailbox);
 }
+
+/** set correct value of $default_charset */
+global $default_charset;
+set_my_charset();
+
 /* Initialize addressbook */
 $abook = addressbook_init();