Fixed security sections update.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 1 Sep 2009 11:23:27 +0000 (11:23 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 1 Sep 2009 11:23:27 +0000 (11:23 +0000)
admin/security_roles.php

index c4667fa09d9dff885a9f6dc8bbfde3934a626b3b..c961e76cd521dd6f57aa92142a74e3caae7c7c93 100644 (file)
@@ -54,8 +54,8 @@ if (get_post('addupdate'))
                foreach($_POST as $p =>$val) {
                        if (substr($p,0,4) == 'Area')
                                $areas[] = substr($p, 4);
-                       if (substr($p,0,6) == 'Section')
-                               $sections[] = substr($p, 6);
+                       if (substr($p,0,7) == 'Section')
+                               $sections[] = substr($p, 7);
                }
                sort($areas);
                sort($sections);