Version 5.0.0 beta 5
This commit is contained in:
1 parent
2f24f9de48
commit
57d9db6ce2
218 files changed
+5331
-7416
No files matched your search
@@ -1289,7 +1289,10 @@ class Album extends Model
|
||||
|
||||
if( $lastImage = $this->lastImage() AND !$lastImage->media )
|
||||
{
|
||||
return (string) File::get( 'gallery_Images', $lastImage->$property )->url;
|
||||
if( $lastImage->$property )
|
||||
{
|
||||
return (string) File::get( 'gallery_Images', $lastImage->$property )->url;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user