Skip to content
Extraits de code Groupes Projets
Valider 13295613 rédigé par mattab's avatar mattab
Parcourir les fichiers

Check the list of spammers is an array to prevent notice in edge case, fixes #9244

parent 9904a060
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -58,6 +58,10 @@ class ReferrerSpamFilter
$cache->save($cacheId, $list);
}
if(!is_array($list)) {
Common::printDebug('Warning: could not read list of spammers from cache.');
return array();
}
return $list;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter