Commit ef32f747 authored by o's avatar o

fix

parent ff98f4ad
Pipeline #4825 failed with stages
in 10 minutes and 31 seconds
......@@ -99,7 +99,7 @@ class ApplicationController < ActionController::Base
helper_method :resource_enabled?
def any_resources_enabled?
!session[:possible_resources].empty?
!(session[:possible_resources]||{}).empty?
end
helper_method :any_resources_enabled?
......@@ -109,7 +109,7 @@ class ApplicationController < ActionController::Base
helper_method :resource_exists?
def any_resources_exist?
!session[:existing_resources].empty?
!(session[:existing_resources]||[]).empty?
end
helper_method :any_resources_exist?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment