Fixes searching with utf-8 chars, minor fixes

This commit is contained in:
nikolark committed 2015-07-23 21:32:10 +02:00
1 parent 90d7f338f1
commit 5125540d7e
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -46,6 +46,8 @@ function get_db_connection($fetch_mode=NULL, $options=NULL) {
$conn->setFetchMode($fetch_mode);
}
}
/* Set character set */
$conn->query('SET NAMES utf8');
return $conn;
}
@@ -147,7 +149,7 @@ function get_user_data($ids) {
}
elseif($key == "cards") {
if($value === "") {
continue; // no groups
continue; // no cards
}
$result[$key] = _get_cards($value);
}