January 25, 2013 at 18:50 /
think i’ve fixed/found the cause. There is a line of code to check if the ‘price_filter_edit’ POST variable is set.
if(isset($_POST['price_filter_edit']) && !empty($_POST['price_filter_edit']) && isset($filters[$_POST['price_filter_edit']])){
PHP empty() treats 0 and “0” as being empty, so the block concerned with unsetting the filter with an ID of 0 will not be executed.
I changed the statement to:
if(isset($_POST['price_filter_edit']) && isset($filters[$_POST['price_filter_edit']])){
and all seems to be well.