From c2525298c6ce5d96afe026e4bd54cf1d834dbbd0 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 16 Jul 2007 22:13:47 +0200 Subject: fix for rare wordblock fail FS#1179 darcs-hash:20070716201347-7ad00-0f9bd8c9a218cc880a7b4e00e0abc2dd4650f409.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/common.php') 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; } } -- cgit v1.2.3