Fixes warning similar to to 27ff697d

This commit is contained in:
mutesplash 2024-03-21 12:58:18 +00:00 committed by Andrew Ruthven
parent 2ce32a3ac7
commit 3701931c21

View File

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