Finally fixed it - it was failing since the value of the checked element was not being tested:
--- admin/security_roles.php Sat Mar 14 20:35:36 2015
+++ admin/security_roles.php Thu Apr 02 11:09:29 2015
@@ -85,8 +85,8 @@
$sections = array();
$areas = array();
foreach($_POST as $p =>$val) {
- if (substr($p,0,4) == 'Area') {
- $a = substr($p, 4);
+ if (substr($p,0,4) == 'Area' && $val == 1) {
+ $a = (int)substr($p, 4);
if (($a&~0xffff) && (($a&0xff00)<(99<<8))) {
$sections[] = $a&~0xff; // add extended section for plugins
}The devs can now port it to FA 2.4 as well using the same patch file.
