Commit 205235ca authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4001 fixed mistake in random modifier handling

parent 79ed78eb
......@@ -733,7 +733,7 @@ class plugin
break;
}
}
return $res;
return array($res);
default:
trigger_error("Unkown modifier '$m'");
return array($str);
......@@ -756,7 +756,7 @@ class plugin
if (is_array($result[0])) {
unset($result[0]['count']);
}
} elseif (($mask !== '') && !preg_match('/c/', $modifiers)) {
} elseif (($mask != '') && !preg_match('/c/', $modifiers)) {
trigger_error("'$mask' was not found in attributes");
}
$len = strlen($modifiers);
......
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