fixed searchfilter-bug introduced with advanced map filtering;
fixed table def
This commit is contained in:
parent
dd6f7991e2
commit
cd90f63d78
@ -9,6 +9,6 @@ CREATE TABLE `profile_options` (
|
|||||||
`check_regex` varchar(255) default NULL,
|
`check_regex` varchar(255) default NULL,
|
||||||
`option_order` int(11) NOT NULL default '100',
|
`option_order` int(11) NOT NULL default '100',
|
||||||
`option_input` varchar(20) NOT NULL default 'text',
|
`option_input` varchar(20) NOT NULL default 'text',
|
||||||
`optionset`, tinyint(2) NOT NULL default '1',
|
`optionset` tinyint(2) NOT NULL default '1',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='static content' ;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='static content' ;
|
||||||
|
@ -920,8 +920,6 @@
|
|||||||
$sql_where[] = '`caches`.`type` IN (' . implode(',', $types) . ')';
|
$sql_where[] = '`caches`.`type` IN (' . implode(',', $types) . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
$sql_where[] = '0';
|
|
||||||
|
|
||||||
if($options['cachesize'] != '')
|
if($options['cachesize'] != '')
|
||||||
{
|
{
|
||||||
@ -932,8 +930,6 @@
|
|||||||
$sql_where[] = '`caches`.`size` IN (' . implode(',', $sizes) . ')';
|
$sql_where[] = '`caches`.`size` IN (' . implode(',', $sizes) . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
$sql_where[] = '0';
|
|
||||||
|
|
||||||
if ($options['difficultymin'] != 0)
|
if ($options['difficultymin'] != 0)
|
||||||
{
|
{
|
||||||
|
@ -1270,6 +1270,9 @@ function get_searchfilter_params(output, skipqueryid, zip)
|
|||||||
sCacheTypes += i;
|
sCacheTypes += i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// search.php will traditionally ignore 'cachetype' option if it is empty,
|
||||||
|
// so we must force it to find nothing if nothing is selected here:
|
||||||
|
if (sCacheTypes == '') sCacheTypes = 'none';
|
||||||
sPostBody += '&cachetype=' + sCacheTypes;
|
sPostBody += '&cachetype=' + sCacheTypes;
|
||||||
|
|
||||||
/* cachesize
|
/* cachesize
|
||||||
@ -1283,6 +1286,7 @@ function get_searchfilter_params(output, skipqueryid, zip)
|
|||||||
sCacheSizes += i;
|
sCacheSizes += i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (sCacheSizes == '') sCacheSizes = 'none';
|
||||||
sPostBody += '&cachesize=' + sCacheSizes;
|
sPostBody += '&cachesize=' + sCacheSizes;
|
||||||
|
|
||||||
/* hide options
|
/* hide options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user