]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/primera_functions.php
Typo fixed
[mailer.git] / inc / libs / primera_functions.php
index 9653804725c7f3974fe841c996fb734a50fad79d..9adf85660da902ad58776ae32d0354e909665679 100644 (file)
@@ -112,7 +112,7 @@ class PrimeraApi {
        var $errno = '0';
        var $err = '';
 
-       var $seperator = ':';
+       var $separator = ':';
 
        var $username = '';
        var $password = '';
@@ -160,7 +160,7 @@ class PrimeraApi {
        function parseContent ( $content ) {
                $x = explode("\n", $content);
                $return = array();
-               foreach($x as $currentLine) {
+               foreach ($x as $currentLine) {
                        $line_exploded = explode(':', $currentLine,2);
                        if (count($line_exploded) > 1) {
                                $return[$line_exploded[0]] = $line_exploded[1];
@@ -237,7 +237,7 @@ class PrimeraApi {
 // is not false the API data is valid, else invalid
 function testPrimeraApi () {
        // Get new instance
-       $api = new PrimeraApi(postRequestParameter('primera_api_name'), postRequestParameter('primera_api_md5'));
+       $api = new PrimeraApi(postRequestElement('primera_api_name'), postRequestElement('primera_api_md5'));
 
        // Was that fine?
        return ($api->getPrimera() !== false);