aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/jquery_gallery_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/jquery_gallery_view.js b/js/jquery_gallery_view.js
index 8ac3219..032c8e0 100644
--- a/js/jquery_gallery_view.js
+++ b/js/jquery_gallery_view.js
@@ -5,7 +5,7 @@ Drupal.behaviors.jqueryGalleryViewBehavior = function (context) {
$('.views-field-title').attr('class', 'views-field-site-title');
// Add photos
- if (Drupal.settings.jqueryGalleryView.photos != null) {
+ if (Drupal.settings.jqueryGalleryView != null && Drupal.settings.jqueryGalleryView.photos != null) {
var photos = Drupal.settings.jqueryGalleryView.photos;
// Image sizes