SQL_FREERESULT($result);
if ((isset($_POST['ok'])) && (!empty($_POST['points']))) {
+ global $DEPTH;
+ // Remove depth to prevent booking errors. This is a bad coding
+ // practice, thats also why we need to write this project from
+ // scratch...
+ unset($DEPTH);
+
// Ok, add points and send an email to him...
ADD_POINTS_REFSYSTEM($uid, bigintval($_POST['points']), false, "0", false, "direct");