Bug fixed in referal system:
[mailer.git] / inc / modules / admin / what-add_points.php
index 683da19824b61a92dcccfcd2093f09196bc7203c..87ed2594efd9109fe1109b7ace618f59ef8fb668 100644 (file)
@@ -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");