Skip to content

Commit

Permalink
check website var exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jul 10, 2013
1 parent c637e85 commit 523fd44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/Contents/Lib/SpamRating.php
Expand Up @@ -371,7 +371,9 @@ public function _getEmailUser($email) {

public function rateWebsite($data) {
$points = 0;
$website = $data[$this->_config('website')];
if (array_key_exists($this->_config('website'), $data)) {
$website = $data[$this->_config('website')];
}

if (empty($website)) {
return $points;
Expand Down

0 comments on commit 523fd44

Please sign in to comment.