diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-16 22:13:47 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-16 22:13:47 +0200 |
commit | c2525298c6ce5d96afe026e4bd54cf1d834dbbd0 (patch) | |
tree | b43cdf9d13f846510af95af98b625f62c9386945 /inc/common.php | |
parent | a7e8a98c6cb8ee464ea4d30c0c46b69ed53eebf0 (diff) | |
download | rpg-c2525298c6ce5d96afe026e4bd54cf1d834dbbd0.tar.gz rpg-c2525298c6ce5d96afe026e4bd54cf1d834dbbd0.tar.bz2 |
fix for rare wordblock fail FS#1179
darcs-hash:20070716201347-7ad00-0f9bd8c9a218cc880a7b4e00e0abc2dd4650f409.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 2 |
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; } } |