Actually set a variable before checking isset()

This commit is contained in:
mutesplash 2024-04-16 19:29:18 +00:00
parent 34b3c7c7a6
commit 237fda57b0

View File

@ -380,7 +380,8 @@ if ( $editor->Available() ) {
$submit_label = translate('Apply Changes');
}
$grant_privileges = isset($grantrow->Value('grant_privileges')) ? bindec($grantrow->Value('grant_privileges')) : 0;
$gp_temp = $grantrow->Value('grant_privileges')
$grant_privileges = isset($gp_temp) ? bindec($gp_temp) : 0;
$privileges_set = '<div id="privileges">';
for( $i=0; $i < count($privilege_names); $i++ ) {
$privilege_set = ( (1 << $i) & $grant_privileges ? ' CHECKED' : '');