can't check if rating is null if it doesn't exist...
This commit is contained in:
parent
94d2f99df2
commit
1fd565fa87
2 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Reference in a new issue