X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6b1d36d49ecb821678978322df9754ce23bb0359..c360da4bcfd113a87bc156e0f009e968d8a8bf07:/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.