Yet another fix for missing 'def_refid' in install phase
[mailer.git] / inc / functions.php
index c727a3bf64ffe0cd73f0e22fb022a5db79922761..29bbc8280e1322b5cbd6011ac391e0d3c5b531f6 100644 (file)
@@ -3192,7 +3192,7 @@ function determineReferalId () {
                }
 
                // Is the record valid?
-               if (($found === false) || (!isUserDataValid())) {
+               if ((($found === false) || (!isUserDataValid())) && (isConfigEntrySet('def_refid'))) {
                        // No, then reset referal id
                        $GLOBALS['refid'] = getConfig('def_refid');
                } // END - if