From: Pierre Habouzit Date: Wed, 10 Sep 2003 18:48:43 +0000 (+0000) Subject: little bugfix -> ksort the values ! X-Git-Tag: procmail~41 X-Git-Url: http://git.polytechnique.org/?p=old-projects.git;a=commitdiff_plain;h=eca2e192f5a58a8eeef0fd16f8e5f021fdae662f little bugfix -> ksort the values ! --- diff --git a/philter/philter/include/rule.inc.php b/philter/philter/include/rule.inc.php index 4c9ecd7..6ab2116 100644 --- a/philter/philter/include/rule.inc.php +++ b/philter/philter/include/rule.inc.php @@ -115,6 +115,7 @@ class Rule { function to_js() { $matches = array(); + ksort($this->matches); foreach($this->matches as $data) { $data = array_map('to_js_str', $data); $matches[] = '[' . implode(',', $data) . ']';