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
}
} // 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">';
// 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!');
// "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);