checking for HASH ref explicitly
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 22:17:47 +0000 (22:17 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 22:17:47 +0000 (22:17 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@198 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Utils/SettingsClient.pm

index b7fed49..2568172 100755 (executable)
@@ -45,7 +45,7 @@ sub config_value {
        # call out to settings server when necessary....
        try {
                for my $key (@keys) {
-                       if(!defined($hash)){
+                       if(!ref($hash) eq 'HASH'){
                                return undef;
                        }
                        $hash = $hash->{$key};