From d636561383df490b147078d93f93f94fd1b343f1 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 26 Feb 2015 10:09:16 +0100 Subject: [PATCH] Fixed PHP warning. --- pandora_console/godmode/setup/setup_auth.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php index 1a077e1542..d32426c9c1 100644 --- a/pandora_console/godmode/setup/setup_auth.php +++ b/pandora_console/godmode/setup/setup_auth.php @@ -94,13 +94,22 @@ if (enterprise_installed()) { add_enterprise_auth_options($table, 12); } +$config_double_auth_enabled = false; +if (isset($config['double_auth_enabled'])) { + $config_double_auth_enabled = $config['double_auth_enabled']; +} + // Enable double authentication $row = array(); $row[] = __('Double authentication') . ui_print_help_tip(__("If this option is enabled, the users can use double authentication with their accounts"), true); -$row[] = __('Yes').' '.html_print_radio_button('double_auth_enabled', 1, '', $config['double_auth_enabled'], true) +$row[] = __('Yes') . ' ' . + html_print_radio_button('double_auth_enabled', 1, '', + $config_double_auth_enabled, true) .'  ' - . __('No').' '.html_print_radio_button('double_auth_enabled', 0, '', $config['double_auth_enabled'], true); + . __('No') .' ' . + html_print_radio_button('double_auth_enabled', 0, '', + $config_double_auth_enabled, true); $table->data[] = $row; echo '
';