]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/primera_functions.php
More fixes/rewrites for rallye
[mailer.git] / inc / libs / primera_functions.php
index 54c5929a051c2ef155d76962ffc8aedb468f4b1a..29f15fd8c46fb7fabb993b515a72c96120b280c3 100644 (file)
@@ -108,7 +108,7 @@ class PrimeraApi {
        var $host = "http://www.primusportal.de";
        var $path = "/transfer.interface.2.0.php";
 
-       var $errno = 0;
+       var $errno = '0';
        var $err = '';
 
        var $seperator = ':';
@@ -269,7 +269,7 @@ function executePrimeraPayout ($primusNick, $userMd5, $amount) {
        $api = new PrimeraApi(getConfig('primera_api_name'), getConfig('primera_api_md5'));
 
        // Prepare purpose
-       eval("\$purpose = \"".compileRawCode(sprintf(getMessage('PRIMERA_API_PURPOSE_PAYOUT'), getUserId()))."\";");
+       eval("\$purpose = \"".compileRawCode(sprintf(getMessage('PRIMERA_API_PURPOSE_PAYOUT'), getMemberId()))."\";");
 
        // Pay the Primera
        return $api->payPrimera($primusNick, $amount, $purpose);