Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #15592: application error 0 in adm_config_report.php

This was due to a missing type cast in call to check_selected(). The
for loop was replaced by a call to print_option_list_from_array(), to
avoid code duplication.
  • Loading branch information...
commit 2d9f1d60e73d657be7a9595eb8ff687f3135ac67 1 parent dd66cd8
@dregad dregad authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 adm_config_report.php
View
8 adm_config_report.php
@@ -464,13 +464,7 @@ function print_option_list_from_array( $p_array, $p_filter_value ) {
<label for="config-type"><span><?php echo lang_get( 'configuration_option_type' ) ?></span></label>
<span class="select">
<select id="config-type" name="type">
- <?php
- foreach( $t_config_types as $t_key => $t_type ) {
- echo '<option value="' . $t_key . '" ';
- check_selected( $t_key, $t_edit_type );
- echo ">$t_type</option>";
- }
- ?>
+ <?php print_option_list_from_array( $t_config_types, $t_edit_type ); ?>
</select>
</span>
<span class="label-style"></span>
Please sign in to comment.
Something went wrong with that request. Please try again.