Variable DEPTH must be deleted before ADD_POINTS_REFSYSTEM() is being called :(
[mailer.git] / mailid_top.php
index d4896483d1d563c0e34c2c2415aad0c99c98f0a5..33c4acad41ffe3c0626fe2a3b65dec34a21fe4be 100644 (file)
@@ -234,7 +234,7 @@ if (isBooleanConstantAndTrue('mxchange_installed'))
                                                                                 array($url_uid), __FILE__, __LINE__);
 
                                                                                // Add points
-                                                                               $DEPTH = 0;
+                                                                               unset($DEPTH);
                                                                                ADD_POINTS_REFSYSTEM($url_uid, $payment, false, "0", $locked);
 
                                                                                // Shall I add bonus points for "turbo clickers" ?
@@ -273,7 +273,7 @@ if (isBooleanConstantAndTrue('mxchange_installed'))
                                                                                LOAD_TEMPLATE($template);
                                                                        } else {
                                                                                // Wrong image code! So add points to sender's account
-                                                                               $DEPTH = 0;
+                                                                               unset($DEPTH);
                                                                                ADD_POINTS_REFSYSTEM($sender, $payment, false, 0, false, "direct");
 
                                                                                // Remove link from table