X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fadmin%2Fwhat-add_points.php;h=87ed2594efd9109fe1109b7ace618f59ef8fb668;hb=8ee39f4094e71546b3cf7e4edb97492be0ea349e;hp=683da19824b61a92dcccfcd2093f09196bc7203c;hpb=05d337e2e0de096225f74d0e039cb32970a7d0df;p=mailer.git diff --git a/inc/modules/admin/what-add_points.php b/inc/modules/admin/what-add_points.php index 683da19824..87ed2594ef 100644 --- a/inc/modules/admin/what-add_points.php +++ b/inc/modules/admin/what-add_points.php @@ -58,6 +58,12 @@ if ($_GET['u_id'] == "all") { 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");