summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocs/CHANGELOG2
-rw-r--r--lib/class/search.class.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index 6a410e90..08033c1c 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -4,6 +4,8 @@
--------------------------------------------------------------------------
v.3.6-Alpha2
+ - Fixed newsearch issue preventing use of more than 9 rules
+ (reported by Twister)
- Fixed JSON escaping issue that broke search in some cases
(reported by XeeNiX)
- Overhauled CLI tools for installation and database management
diff --git a/lib/class/search.class.php b/lib/class/search.class.php
index e5b9386b..fc860ed9 100644
--- a/lib/class/search.class.php
+++ b/lib/class/search.class.php
@@ -608,7 +608,7 @@ class Search extends playlist_object {
public function parse_rules($data) {
$this->rules = array();
foreach ($data as $rule => $value) {
- if (preg_match('/^rule_(\d)$/', $rule, $ruleID)) {
+ if (preg_match('/^rule_(\d+)$/', $rule, $ruleID)) {
$ruleID = $ruleID[1];
foreach (explode('|', $data['rule_' . $ruleID . '_input']) as $input) {
$this->rules[] = array(