diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index ae08ddc..31aac6e 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -556,7 +556,7 @@ class Admin::GalleriesController < OrbitAdminController files.each do |file| image = album.album_images.new image.tags = (album.tags rescue []) - if AlbumVariable.first.count==1 + if(AlbumVariable.first.count==1 rescue true) image.file = file else album_unprocess.image_id = image.id