can't check if rating is null if it doesn't exist...
This commit is contained in:
parent
94d2f99df2
commit
1fd565fa87
@ -38,7 +38,7 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
$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"){
|
if($image->rating == null || $image->rating == "u"){
|
||||||
$image->rating = "u";
|
$image->rating = "u";
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
$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"){
|
if($image->rating == null || $image->rating == "u"){
|
||||||
$image->rating = "u";
|
$image->rating = "u";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user