스팸필터모듈에 아이피나 금지어가 등록되어 있지 않을 경우 오류발생하는 부분 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3271 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-08 14:03:16 +00:00
parent 428ad23196
commit b4abef7f4d

View file

@ -41,7 +41,7 @@
$ipaddress = $_SERVER['REMOTE_ADDR'];
$ip_list = $this->getDeniedIPList();
if(!count($ip_list)) return false;
if(!count($ip_list)) return new Object();
$count = count($ip_list);
$patterns = array();
@ -73,7 +73,7 @@
**/
function isDeniedWord($text) {
$word_list = $this->getDeniedWordList();
if(!count($word_list)) return false;
if(!count($word_list)) return new Object();
$count = count($word_list);
for($i=0;$i<$count;$i++) {