diff options
author | andyst <andy.st@gmail.com> | 2009-06-01 23:45:37 -0700 |
---|---|---|
committer | andyst <andy.st@gmail.com> | 2009-06-01 23:45:37 -0700 |
commit | 02a840c84cada5a1c0cc0768f350424460310e5d (patch) | |
tree | 6a35d4afddcf291327a4ff42245bca17328084ae /modules/exif/helpers | |
parent | d0845aadc629cf10b8eee490a651c039750a1430 (diff) | |
parent | 3b6567f38c206f1302c7b22d94d5eae4b458311a (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/exif/helpers')
-rw-r--r-- | modules/exif/helpers/exif_theme.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/exif/helpers/exif_theme.php b/modules/exif/helpers/exif_theme.php index 14186d15..bb6926d3 100644 --- a/modules/exif/helpers/exif_theme.php +++ b/modules/exif/helpers/exif_theme.php @@ -21,13 +21,13 @@ class exif_theme_Core { static function sidebar_bottom($theme) { $item = $theme->item(); if ($item && $item->is_photo()) { - if (Database::instance() - ->select("key_count") - ->from("exif_records") - ->where("item_id", $item->id) - ->get() - ->current() - ->key_count) { + $record = Database::instance() + ->select("key_count") + ->from("exif_records") + ->where("item_id", $item->id) + ->get() + ->current(); + if ($record && $record->key_count) { $view = new View("exif_sidebar.html"); $view->item = $item; return $view; |