diff --git a/src/Provider/Azure.php b/src/Provider/Azure.php index ce71e3d..bbbb0fa 100644 --- a/src/Provider/Azure.php +++ b/src/Provider/Azure.php @@ -183,13 +183,15 @@ public function request($method, $ref, &$accessToken, $options = []) if (filter_var($ref, FILTER_VALIDATE_URL) !== FALSE) { $url = $ref; } else { - if (strpos($this->urlAPI, "graph.windows.net") === TRUE) { + if (strpos($this->urlAPI, "graph.windows.net") !== FALSE) { $tenant = 'common'; if (property_exists($this, 'tenant')) { $tenant = $this->tenant; } $ref = "$tenant/$ref"; + $url = $this->urlAPI.$ref; + $url .= (strrpos($url, "?") === false) ? "?" : "&"; $url .= "api-version=".$this->API_VERSION; }