Added "global $conf" to make the conditions working.
Merge pull request #320 from lupo49/master

Added "global $conf" to make the conditions working.