we now return undef if any level of the sought config doesn't exist
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2005 22:50:45 +0000 (22:50 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2005 22:50:45 +0000 (22:50 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@157 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Utils/SettingsClient.pm

index 6846b70..b7fed49 100755 (executable)
@@ -45,6 +45,9 @@ sub config_value {
        # call out to settings server when necessary....
        try {
                for my $key (@keys) {
+                       if(!defined($hash)){
+                               return undef;
+                       }
                        $hash = $hash->{$key};
                }