diff --git a/cfg/cfg.d/zz_rioxx2.pl b/cfg/cfg.d/zz_rioxx2.pl index 4bbda06..3461961 100644 --- a/cfg/cfg.d/zz_rioxx2.pl +++ b/cfg/cfg.d/zz_rioxx2.pl @@ -591,6 +591,11 @@ my( $repo, $value, $eprint ) = @_; my @problems; + if ( ref($value) ne 'HASH' ) + { + push @problems, $repo->html_phrase( "rioxx2_validate_rioxx2_free_to_read:not_done_part_free_to_read" ); + return @problems; + } unless( EPrints::Utils::is_set( $value->{free_to_read} ) ) { push @problems, $repo->html_phrase( "rioxx2_validate_rioxx2_free_to_read:not_done_part_free_to_read" );