Commit 7e111e92 by Qiang Xue

Fixes issue #496

parent 9d6f11d5
...@@ -204,14 +204,12 @@ abstract class Target extends Component ...@@ -204,14 +204,12 @@ abstract class Target extends Component
if ($matched) { if ($matched) {
foreach ($this->except as $category) { foreach ($this->except as $category) {
$prefix = rtrim($category, '*'); $prefix = rtrim($category, '*');
foreach ($messages as $i => $message) {
if (strpos($message[2], $prefix) === 0 && ($message[2] === $category || $prefix !== $category)) { if (strpos($message[2], $prefix) === 0 && ($message[2] === $category || $prefix !== $category)) {
$matched = false; $matched = false;
break; break;
} }
} }
} }
}
if (!$matched) { if (!$matched) {
unset($messages[$i]); unset($messages[$i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment