X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttRoleHelper.class.php;h=18396704a873dc66f080be54e1634f6b536f7202;hb=2ccee198591bc2ad5d80b5e1076246449d9232c1;hp=e03339aa24b78d5e1d964ddb7e1bb8a53a6605ba;hpb=6b1d36d49ecb821678978322df9754ce23bb0359;p=timetracker.git diff --git a/WEB-INF/lib/ttRoleHelper.class.php b/WEB-INF/lib/ttRoleHelper.class.php index e03339aa..18396704 100644 --- a/WEB-INF/lib/ttRoleHelper.class.php +++ b/WEB-INF/lib/ttRoleHelper.class.php @@ -166,7 +166,11 @@ class ttRoleHelper { if (is_a($affected, 'PEAR_Error')) return false; - return true; + $sql = "SELECT LAST_INSERT_ID() AS last_id"; + $res = $mdb2->query($sql); + $val = $res->fetchRow(); + $last_id = $val['last_id']; + return $last_id; } // createPredefinedRoles - creates a set of predefined roles for the team to use.