Yet another fix for missing 'def_refid' in install phase
authorRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2009 17:56:56 +0000 (17:56 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2009 17:56:56 +0000 (17:56 +0000)
inc/functions.php

index c727a3b..29bbc82 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