]> git.mxchange.org Git - mailer.git/commitdiff
Translation of status/reward now happens after the record was inserted
authorRoland Häder <roland@mxchange.org>
Thu, 4 Sep 2008 22:33:41 +0000 (22:33 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 4 Sep 2008 22:33:41 +0000 (22:33 +0000)
inc/libs/surfbar_functions.php

index 6f8449488bb0878f2c7c26879e9f963cc1307006..8cd6082367ad4998b136abddcd4e26ef568095f1 100644 (file)
@@ -115,13 +115,17 @@ function SURFBAR_REGISTER_URL ($url, $uid, $reward, $status="PENDING", $addMode=
                'url'         => $url,
                'frametester' => FRAMETESTER($url),
                'uid'         => $uid,
-               'reward'      => TRANSLATE_COMMA($reward),
-               'status'      => SURFBAR_TRANSLATE_STATUS($status)
+               'reward'      => $reward,
+               'status'      => $status
        );
 
        // Insert the URL into database
        $content['insert_id'] = SURFBAR_INSERT_URL_BY_ARRAY($content);
 
+       // Translate status and reward
+       $content['status'] = SURFBAR_TRANSLATE_STATUS($content['status']);
+       $content['reward'] = TRANSLATE_COMMA($content['reward']);
+
        // If in reg-mode we notify admin
        if (($addMode == "reg") || ($_CONFIG['surfbar_notify_admin_unlock'] == "Y")) {
                // Notify admin even when he as unlocked an email