I tried setting the "Show if the following PHP code returns TRUE (PHP-mode, experts only)." of the "Modr8 moderator's block" to:
(db_result(db_query(db_rewrite_sql('SELECT COUNT(*) FROM {node} n WHERE n.moderate = 1'))) > 0)
However, the block is still showing when it shows there are "0 posts in moderation". What am I doing wrong?
Comments
Comment #1
RichieB commentedMy bad. I forgot the php block. The working code is: