Only show location tab when GEOLOCATION is turned on

pull/4202/head
Isaac Connor 2024-10-15 13:53:00 -04:00
parent f12d7a2184
commit d04153b06b
1 changed files with 2 additions and 1 deletions

View File

@ -407,7 +407,8 @@ if ( $monitor->Type() != 'WebSite' ) {
if ( ZM_OPT_X10 )
$tabs['x10'] = translate('X10');
$tabs['misc'] = translate('Misc');
$tabs['location'] = translate('Location');
if (defined('ZM_OPT_USE_GEOLOCATION') and ZM_OPT_USE_GEOLOCATION)
$tabs['location'] = translate('Location');
}
if ( isset($_REQUEST['tab']) )