fix report_auth_info when db has not been initialized
git-svn-id: file:///home/svn/framework3/trunk@6112 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
70c93d7691
commit
51b0e84691
|
@ -17,7 +17,7 @@ module Auxiliary::Report
|
|||
end
|
||||
module OperatingSystems
|
||||
LINUX = "Linux"
|
||||
MAC_OSX = "Mac OSX"
|
||||
MAC_OSX = "MacOSX"
|
||||
WINDOWS = "Windows"
|
||||
|
||||
UNKNOWN = "Unknown"
|
||||
|
@ -85,6 +85,7 @@ module Auxiliary::Report
|
|||
end
|
||||
|
||||
def report_auth_info(opts={})
|
||||
return if not db
|
||||
addr = opts[:host] || return
|
||||
data = opts[:proto] || return
|
||||
|
||||
|
@ -97,4 +98,4 @@ module Auxiliary::Report
|
|||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue