mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 18:24:03 -04:00
Fix error if theme item is not supplied.
This commit is contained in:
@@ -19,11 +19,12 @@
|
||||
*/
|
||||
class exif_theme_Core {
|
||||
static function sidebar_bottom($theme) {
|
||||
if ($theme->item()->is_photo()) {
|
||||
$item = $theme->item();
|
||||
if ($item && $item->is_photo()) {
|
||||
$view = new View("exif_sidebar.html");
|
||||
|
||||
$csrf = access::csrf_token();
|
||||
$view->url = url::site("exif/show/{$theme->item()->id}?csrf=$csrf");
|
||||
$view->url = url::site("exif/show/{$item->id}?csrf=$csrf");
|
||||
return $view;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user