GroupRights.php
authorAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 07:12:36 +0000 (15:12 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 07:12:36 +0000 (15:12 +0800)
GroupRights.php

index 24f4bff..ebedf80 100644 (file)
@@ -105,6 +105,7 @@ class Pman_Admin_GroupRights extends Pman
         // add or update..
         if (!empty($_POST['dataUpdate'])) {
             foreach($_POST['dataUpdate'] as $id => $ac) {
+                $id  = (int)$id;
                 $p = DB_DataObject::factory('group_rights');
                 $p->group_id = (int)$_POST['group_id'];
                 if (!$p->get($id)) {