Run the query before hiding specific fields in demo mode
This commit is contained in:
parent
f339dbc2ba
commit
d26ed0bac1
@ -77,6 +77,10 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
||||
// Print main manage users page
|
||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
// Get the current version of Mods for Hesk
|
||||
$modsForHeskVersionRS = hesk_dbQuery("SELECT `Value` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` WHERE `Key` = 'modsForHeskVersion'");
|
||||
$modsForHeskVersion = hesk_dbFetchAssoc($modsForHeskVersionRS)['Value'];
|
||||
|
||||
// Demo mode? Hide values of sensitive settings
|
||||
if ( defined('HESK_DEMO') )
|
||||
{
|
||||
@ -95,9 +99,6 @@ if ( defined('HESK_DEMO') )
|
||||
$hesk_settings['recaptcha_private_key'] = $hesklang['hdemo'];
|
||||
}
|
||||
|
||||
// Get the current version of Mods for Hesk
|
||||
$modsForHeskVersionRS = hesk_dbQuery("SELECT `Value` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` WHERE `Key` = 'modsForHeskVersion'");
|
||||
$modsForHeskVersion = hesk_dbFetchAssoc($modsForHeskVersionRS)['Value'];
|
||||
?>
|
||||
|
||||
<div class="row" style="margin-top: 20px">
|
||||
|
Loading…
x
Reference in New Issue
Block a user