added small fix

This commit is contained in:
Harry Bomrah 2017-09-19 16:58:10 +08:00
parent 92f1fd6188
commit 1f9a6fe8ca
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class SiteRequest
belongs_to :c_panel_user
def get_site
self.site_id == "newsite" ? nil : RegisteredSite.find(self.site_id)
self.site_id == "newsite" ? nil : (RegisteredSite.find(self.site_id) rescue nil)
end
def get_request_type