]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_points.php
Some fixes and improvements:
[mailer.git] / inc / modules / admin / what-add_points.php
index e77b3f24fe9f6cc5f891650604d8ac4cdd03c6ca..683da19824b61a92dcccfcd2093f09196bc7203c 100644 (file)
@@ -93,6 +93,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(bigintval($_GET['u_id']), bigintval($_POST['points']), false, "0", false, "direct");