Compare commits

...

4 Commits

Author SHA1 Message Date
mutesplash
c7a567c516 Merge branch 'mutesplash-master-patch-85583' into 'master'
Fixes warning similar to to 27ff697d

See merge request davical-project/davical!132
2026-04-09 13:48:57 +00:00
mutesplash
237fda57b0 Actually set a variable before checking isset() 2024-04-16 19:29:18 +00:00
mutesplash
34b3c7c7a6 Merge branch davical:master into mutesplash-master-patch-85583 2024-04-16 19:21:35 +00:00
mutesplash
3701931c21 Fixes warning similar to to 27ff697d 2024-04-14 11:13:48 +00:00

View File

@ -380,7 +380,8 @@ if ( $editor->Available() ) {
$submit_label = translate('Apply Changes');
}
$grant_privileges = bindec($grantrow->Value('grant_privileges'));
$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' : '');