fix report_auth_info when db has not been initialized

git-svn-id: file:///home/svn/framework3/trunk@6112 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-01-11 01:45:57 +00:00
parent 70c93d7691
commit 51b0e84691
1 changed files with 3 additions and 2 deletions

View File

@ -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