X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fsecurity_roles.php;h=2905f30fab624688209defa1cb69180b0f74b67c;hb=c85c10b86be48b2b1df728f4751adbb38f2ac8d4;hp=2727af4c3eabe5f97196b88baad0ce7196b502c3;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/admin/security_roles.php b/admin/security_roles.php index 2727af4c..2905f30f 100644 --- a/admin/security_roles.php +++ b/admin/security_roles.php @@ -85,15 +85,15 @@ if (get_post('addupdate')) $sections = array(); $areas = array(); foreach($_POST as $p =>$val) { - if (substr($p,0,4) == 'Area') { + if (substr($p,0,4) == 'Area' && $val == 1) { $a = substr($p, 4); if (($a&~0xffff) && (($a&0xff00)<(99<<8))) { $sections[] = $a&~0xff; // add extended section for plugins } - $areas[] = $a; + $areas[] = (int)$a; } - if (substr($p,0,7) == 'Section') - $sections[] = substr($p, 7); + if (substr($p,0,7) == 'Section' && $val == 1) + $sections[] = (int)substr($p, 7); } // $areas = sort_areas($areas); @@ -197,7 +197,7 @@ start_table(TABLESTYLE2); record_status_list_row(_("Current status:"), 'inactive'); end_table(1); - start_table(TABLESTYLE, "width=40%"); + start_table(TABLESTYLE, "width='40%'"); $k = $j = 0; //row colour counter $ext = $sec = $m = -1;