From: Roland Häder Date: Mon, 5 Oct 2009 22:16:28 +0000 (+0000) Subject: Default refid is always fallback now, or 0 if sql_patches is absend X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=7dbf553750858b5a422c6ef736dfd2bc2e97c74f Default refid is always fallback now, or 0 if sql_patches is absend --- diff --git a/inc/functions.php b/inc/functions.php index b5d3d1ea39..5f9e1229ad 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3228,12 +3228,12 @@ function DETERMINE_REFID () { } elseif ((isSessionVariableSet('refid')) && (getSession('refid') != 0)) { // Set session refid als global $GLOBALS['refid'] = bigintval(getSession('refid')); - } elseif ((GET_EXT_VERSION('sql_patches') != '') && (getConfig('def_refid') > 0)) { - // Set default refid as refid in URL - $GLOBALS['refid'] = getConfig('def_refid'); } elseif ((GET_EXT_VERSION('user') >= '0.3.4') && (getConfig('select_user_zero_refid')) == 'Y') { // Select a random user which has confirmed enougth mails $GLOBALS['refid'] = determineRandomReferalId(); + } elseif ((GET_EXT_VERSION('sql_patches') != '') && (getConfig('def_refid') > 0)) { + // Set default refid as refid in URL + $GLOBALS['refid'] = getConfig('def_refid'); } else { // No default ID when sql_patches is not installed or none set $GLOBALS['refid'] = 0;