make rule id generation in non-cluster mode work again

This commit is contained in:
Johanna Amann 2015-05-28 16:58:55 -07:00
parent 99dcb40c67
commit 3bd513785f
5 changed files with 19 additions and 19 deletions

View file

@ -340,7 +340,7 @@ function add_rule_impl(r: Rule) : string
{
r$cid = ++rule_counter; # numeric id that can be used by plugins for their rules.
if ( ! r?$id )
if ( ! r?$id || r$id == "" )
r$id = cat(r$cid);
for ( i in plugins )