diff --git a/lib/class.ABF.php b/lib/class.ABF.php index 08201f6..9edc92d 100644 --- a/lib/class.ABF.php +++ b/lib/class.ABF.php @@ -385,12 +385,11 @@ private function __registerToList($tbl, $source, $ip='') { $ip = $this->getIP($ip); $source = MySQL::cleanValue($source); - $results = $this->__isListed($tbl, $ip); $isGray = $tbl == $this->TBL_ABF_GL; $ret = false; // do not re-register existing entries - if ($results != null && count($results) > 0) { + if ($this->__isListed($tbl, $ip)) { if ($isGray) { $ret = $this->incrementGrayList($ip); }