From 964a42c91e0c9bb3bc8db7239a8eda05861e7c0e Mon Sep 17 00:00:00 2001 From: passbe Date: Sat, 30 Apr 2011 05:54:23 +0000 Subject: [PATCH] Fixed differences in returns from ruby 1.8 to 1.9, which was causing errors when loading the admin_ui git-svn-id: https://beef.googlecode.com/svn/trunk@943 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/modules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules.rb b/core/modules.rb index 5a0a3708c..f465517cf 100644 --- a/core/modules.rb +++ b/core/modules.rb @@ -13,7 +13,7 @@ module Modules # Return module configuration by database id def self.get_by_database_id(id) - return BeEF::Core::Configuration.instance.get('beef.module').select {|k,v| v.has_key?('db') and v['db']['id'].to_i == id.to_i } + return BeEF::Core::Configuration.instance.get('beef.module').select {|k,v| v.has_key?('db') and v['db']['id'].to_i == id.to_i }.to_hash end # Loads modules