]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
More misc fixes and rewrites (sorry, lame description)
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index a302b092241b165d2a73781e20886e950e63bfdb..c2ed620c93e438ec6ca053ea9f5cd086b230592b 100644 (file)
@@ -65,7 +65,7 @@ if (REQUEST_ISSET_GET(('rallye'))) {
                                ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_rallye_data` SET is_active='N' WHERE `id`=%s AND is_active='Y' LIMIT 1");
                                break;
                }
-       } elseif (REQUEST_ISSET_GET(('notify'))) {
+       } elseif (REQUEST_ISSET_GET('notify')) {
                // Automatic notification
                switch (REQUEST_GET('notify'))
                {
@@ -243,12 +243,12 @@ LIMIT 1",
                        if (($content['refs'] > 0) || ($cnt > 0)) {
                                // Insert link to referal list
                                //* DEBUG: */ echo '-'.$content['userid'].'/'.$cnt.'/'.$content['refs']."-<br />";
-                               $cnt = generateUserProfileLink($content['userid'], $cnt, "list_refs");
-                               $content['refs'] = generateUserProfileLink($content['userid'], $content['refs'], "list_refs");
+                               $cnt = generateUserProfileLink($content['userid'], $cnt, 'list_refs');
+                               $content['refs'] = generateUserProfileLink($content['userid'], $content['refs'], 'list_refs');
                        } // END - if
 
                        // Get user points
-                       $points = GET_TOTAL_DATA($content['userid'], "user_points", "points", 'userid', false, " AND ref_depth=1 LIMIT 1");
+                       $points = GET_TOTAL_DATA($content['userid'], 'user_points', 'points', 'userid', false, " AND `ref_depth`=1 LIMIT 1");
                        //* DEBUG: */ echo basename(__FILE__).":uid={$content['userid']},points={$points},opoints={$content['curr_points']}<br />\n";
 
                        // Prepare content
@@ -292,7 +292,7 @@ ORDER BY start_time DESC",
                        $content['alogin'] = getAdminLogin($content['admin_id']);
 
                        // Count joined userids
-                       $joined = GET_TOTAL_DATA($content['id'], "rallye_users", "id", "rallye_id", true);
+                       $joined = GET_TOTAL_DATA($content['id'], "rallye_users", 'id', "rallye_id", true);
 
                        // Did some users joined this rallye?
                        if ($joined > 0) {
@@ -310,7 +310,7 @@ ORDER BY start_time DESC",
                        $content = array(
                                'select'     => "<input type=\"checkbox\" name=\"sel[".$content['id']."]\" class=\"admin_normal\" value=\"1\" />",
                                'aid'        => $content['admin_id'],
-                               'email_link' => generateMemberEmailLink($content['admin_id']),
+                               'email_link' => generateEmailLink($content['admin_id']),
                                'alogin'     => $content['alogin'],
                                'id'         => $content['id'],
                                'sw'         => $SW,