Stable branch merged up to 2.3.21
[fa-stable.git] / admin / security_roles.php
index 2727af4c3eabe5f97196b88baad0ce7196b502c3..f8b44552b4630b78b756757edb5082f487e98360 100644 (file)
@@ -90,10 +90,10 @@ if (get_post('addupdate'))
                                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);
+                               $sections[] = (int)substr($p, 7);
                }
 //             $areas = sort_areas($areas);