]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/primera_functions.php
Fix for broken confirmation
[mailer.git] / inc / libs / primera_functions.php
index 6643755e7f32725285afdd59ff888d5484c6cde0..9653804725c7f3974fe841c996fb734a50fad79d 100644 (file)
@@ -258,7 +258,7 @@ function executePrimeraWithdraw ($primusNick, $userMd5, $amount) {
        $api = new PrimeraApi($primusNick, $userMd5);
 
        // Prepare purpose
-       eval("\$purpose = \"".compileRawCode(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid')))."\";");
+       eval('$purpose = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid')), true) . '";');
 
        // Pay the Primera
        return $api->payPrimera($primusNick, $amount, $purpose);
@@ -270,7 +270,7 @@ function executePrimeraPayout ($primusNick, $userMd5, $amount) {
        $api = new PrimeraApi(getConfig('primera_api_name'), getConfig('primera_api_md5'));
 
        // Prepare purpose
-       eval("\$purpose = \"".compileRawCode(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId()))."\";");
+       eval('$purpose = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId()), true) . '";');
 
        // Pay the Primera
        return $api->payPrimera($primusNick, $amount, $purpose);