Zen Follower
- Join Date:
- Jan 2009
- Posts:
- 222
- Plugin Contributions:
- 2
Post #1 by data_digger
Hello,
I'm not sure which versions exactly are affected but I know that the bug exists at least since 1.3.8a till 1.5.0.
When search keywords contain single '0' character (for example "oven 0') the '0' is incorrectly casted to boolean falase in includes/functions/functions_general.php line 373 (in version 1.5.0):
} elseif ( ($objects[$i]) && ($objects[$i] != '(') && ($objects[$i] != ')') ) {
``` and search fails.
Quick fix:
```php
} elseif ( (is_string($objects[$i]) && $objects[$i] == '0') || ($objects[$i]) && ($objects[$i] != '(') && ($objects[$i] != ')') ) {
data_digger,
**Query Cache v1.7-beta for ZC 1.3.9h** Reduce query count by 80% | **Randomized Tests**
www.data-diggers.com