causefx 8 years ago
parent
commit
99eb373862
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions.php

+ 1 - 1
functions.php

@@ -4841,7 +4841,7 @@ function getOmbiToken($username, $password){
 		"rememberMe" => "true",
          );
 	$api = curl_post(OMBIURL."/api/v1/Token", $json, $headers);
-	if (isset($result['content'])) {
+	if (isset($api['content'])) {
 		return json_decode($api['content'], true)['access_token'];
 	}else{
 		return false;