Adjusted rating array usage

This commit is contained in:
Matthew Barbour
2019-06-27 19:49:58 -05:00
committed by matthew
parent 5e87dff033
commit b2193cb6f1
2 changed files with 2 additions and 2 deletions

View File

@@ -414,7 +414,7 @@ class CommentList extends Extension
$image = Image::by_id($row["image_id"]);
if (
ext_is_live("Ratings") && !is_null($image) &&
strpos($user_ratings, $image->rating) === false
!in_array($image->rating, $user_ratings)
) {
$image = null; // this is "clever", I may live to regret it
}