From: Roland Häder Date: Mon, 5 Jul 2010 06:26:33 +0000 (+0000) Subject: Getter getBegUserid() added X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=64dbf5402e03d03a39d668cccc838caf036adb2d Getter getBegUserid() added --- diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 9cd94d10eb..e7faa39850 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -79,5 +79,17 @@ function isBegRallyeEnabled () { return $GLOBALS['is_beg_rallye_enabled']; } +// "Getter" for beg_userid +function getBegUserid () { + // Do we have cache? + if (!isset($GLOBALS['beg_userid'])) { + // Get it + $GLOBALS['beg_userid'] = getConfig('beg_userid'); + } // END - if + + // Return cache + return $GLOBALS['beg_userid']; +} + // [EOF] ?>