Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
[mailer.git] / inc / libs / rallye_functions.php
index d88550529135925a0f2b1c34c20220e7978217d1..3974a2df090c68a2f98f65f9afbc73b0323d70e7 100644 (file)
@@ -91,7 +91,7 @@ WHERE
 LIMIT 1",
                        array(bigintval($content['id']), bigintval($content['userid'])), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_HASZERONUMS($result_ref)) {
                        // Add userid and his ref count to table
                        $result_ref = SQL_QUERY_ESC("SELECT 
@@ -907,7 +907,7 @@ function addReferralRallyeTemplateSelection ($name = 'template', $default = '')
                }
        } // END - foreach
 
-       // Do we have found templates which we can link with the new rallye?
+       // Is there found templates which we can link with the new rallye?
        if (!empty($ral[0])) {
                // Generate selection box for all found templates
                $OUT  = '<select class="form_select" name="' . $name . '" size="1">';
@@ -929,7 +929,7 @@ function getReferralRallyeRefsCount ($currUserid, $oldReferralCount = '0') {
                // Get refs from cache
                $count = '0';
                foreach ($GLOBALS['cache_array']['refsystem']['userid'] as $id => $userid) {
-                       // Do we have a ref for this user?
+                       // Is there a ref for this user?
                        //* DEBUG: */ debugOutput('id='.$id.',userid='.$userid.',userid='.$userid.',oldReferralCount='.$oldReferralCount.',level='.$GLOBALS['cache_array']['refsystem']['level'][$id]);
                        if (($currUserid == $userid) && ($GLOBALS['cache_array']['refsystem']['level'][$id] == 1)) {
                                //* DEBUG: */ debugOutput('userid matches!');
@@ -1025,7 +1025,7 @@ function determineReferralRallyeMinimumPrices ($min_prices) {
 
 // "Getter" for total rallye prices by given id
 function getTotalRallyePrices ($rallyeId) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$rallyeId])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$rallyeId] = countSumTotalData($rallyeId, 'rallye_prices', 'id', 'rallye_id', true);