X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/717d0c75c9e3ddb161c3d3d8583e2b5761b1b634..074e8daef75c2b729e75f350b52935a6b7ecfba8:/WEB-INF/lib/ttRoleHelper.class.php 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.