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 6f84494..8cd6082 100644 (file)
@@ -115,13 +115,17 @@ function SURFBAR_REGISTER_URL ($url, $uid, $reward, $status="PENDING", $addMode=
                'url'         => $url,
                'frametester' => FRAMETESTER($url),
                'uid'         => $uid,
                '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);
 
        );
 
        // 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
        // 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