diff --git a/adminer/include/connect.inc.php b/adminer/include/connect.inc.php
index 4e91a6ba..45ba46d2 100644
--- a/adminer/include/connect.inc.php
+++ b/adminer/include/connect.inc.php
@@ -36,7 +36,7 @@ function connect_error() {
. "
" . lang('Database') . " - " . lang('Refresh') . ""
. " | " . lang('Collation')
. " | " . lang('Tables')
- . " | " . lang('Size') . " - " . lang('Compute') . ""
+ . " | " . lang('Size') . " - " . lang('Compute') . ""
. "\n"
;
diff --git a/adminer/static/functions.js b/adminer/static/functions.js
index 4aec4341..d1e97671 100644
--- a/adminer/static/functions.js
+++ b/adminer/static/functions.js
@@ -603,10 +603,10 @@ function ajax(url, callback, data, message) {
/** Use setHtml(key, value) for JSON response
* @param string
-* @return XMLHttpRequest or false in case of an error
+* @return boolean false for success
*/
function ajaxSetHtml(url) {
- return ajax(url, function (request) {
+ return !ajax(url, function (request) {
var data = window.JSON ? JSON.parse(request.responseText) : eval('(' + request.responseText + ')');
for (var key in data) {
setHtml(key, data[key]);
|