summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index b47395333..3bdfc7c72 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -480,7 +480,7 @@ function checkwordblock(){
if(empty($block)) continue;
$re[] = $block;
}
- if(preg_match('#('.join('|',$re).')#si',$text)) {
+ if(count($re) && preg_match('#('.join('|',$re).')#si',$text)) {
return true;
}
}