can't check if rating is null if it doesn't exist...

This commit is contained in:
Daku 2012-02-06 05:23:37 +00:00
parent 94d2f99df2
commit 1fd565fa87
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>";
}
if(!is_null($image->rating) && file_exists("ext/rating")) {
if(file_exists("ext/rating")) {
if($image->rating == null || $image->rating == "u"){
$image->rating = "u";
}

View file

@ -44,7 +44,7 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>";
}
if(!is_null($image->rating) && file_exists("ext/rating")) {
if(file_exists("ext/rating")) {
if($image->rating == null || $image->rating == "u"){
$image->rating = "u";
}