]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Fixes for broken saving config in ext-yoomedia
[mailer.git] / inc / libs / rallye_functions.php
index ca7e60fb54485d1b44931d4c2fcb8de472c457bd..5aa0a1805cea0b682293eea8f3e348534ede309d 100644 (file)
@@ -468,7 +468,7 @@ function markReferalRallyesAsExpired ($result) {
                $prices['active'][$key] = $active;
 
                // Allow valid and active users with at least one ref to get points
-               if (($userid > 0) && ($prices['ref'][$key] > 0) && ($active == 1) && ($prices['cpoints'][$key] > 0)) {
+               if ((isValidUserId($userid)) && ($prices['ref'][$key] > 0) && ($active == 1) && ($prices['cpoints'][$key] > 0)) {
                        $total++;
                } // END - if
        } // END - foreach
@@ -486,7 +486,7 @@ function markReferalRallyesAsExpired ($result) {
        // Run array through (by userid is the most important 2nd-level-array)
        foreach($prices['userid'] as $key => $userid) {
                // Allow valid and active users with at least one ref to get points
-               if (($userid > 0) && ($prices['ref'][$key] > 0) && ($prices['active'][$key] == 1) && ($prices['cpoints'][$key] > 0)) {
+               if ((isValidUserId($userid)) && ($prices['ref'][$key] > 0) && ($prices['active'][$key] == 1) && ($prices['cpoints'][$key] > 0)) {
                        // Transfer data to array for the mail template
                        $DATA['level']  = $prices['level'][$key];
                        $DATA['points'] = $prices['points'][$key];
@@ -840,7 +840,7 @@ function addReferalRallyeTemplateSelection ($name = 'template', $default = '') {
        // Do we have found templates which we can link with the new rallye?
        if (!empty($ral[0])) {
                // Generate selection box for all found templates
-               $OUT  = '<select name="' . $name . '" size="1" class="admin_select">';
+               $OUT  = '<select name="' . $name . '" size="1" class="form_select">';
                $OUT .= generateOptionList('/ARRAY/', array_keys($ral), array_values($ral), $default, '', 'none');
                $OUT .= '</select>';
        } else {