// Free memory
SQL_FREERESULT($result_depths);
+// Add userid
+$content['userid'] = getMemberId();
+
// Put rows to constant for the main template
$content['rows'] = $OUT;
-// Remember several values in constants
-$content['total_points'] = $content['part_points'] - getUserData('used_points') + $content['part_order'];
-
// Fixes a bug when there is no bonus extension installed
if (isExtensionInstalledAndOlder('bonus', '0.4.4')) {
setConfigEntry('bonus_active', 'X');