Permalink
Browse files

Bugfix: incorrectly returning true when page name was missing

  • Loading branch information...
MrBertie committed Jan 8, 2012
1 parent ce225b9 commit 4e7bb631165dfdaabaed76d2c72f4c86639a0afd
Showing with 2 additions and 2 deletions.
  1. +1 −1 ajax.php
  2. +1 −1 script.js
View
@@ -104,7 +104,7 @@ function ajax_indexpage() {
$force = false;
if (!$_POST['page']) {
- print 'true';
+ print 0;
exit;
}
if (isset($_POST['force'])) {
View
@@ -124,7 +124,7 @@ var plugin_searchindex = (function() {
if (rebuild === true) {
clear();
} else {
- force = 'f';
+ force = '';
// just start indexing immediately
window.setTimeout(index,1000);
}

0 comments on commit 4e7bb63

Please sign in to comment.