]> git.mxchange.org Git - friendica.git/blobdiff - include/auth_ejabberd.php
added much more curly braces + space between "if" and brace
[friendica.git] / include / auth_ejabberd.php
index e1900dc7304df8501794b5f9537fc050d59f3e85..e12da35ef1755057b37e78e26e2069ba50fa7035 100755 (executable)
@@ -146,7 +146,7 @@ class exAuth {
         * @param array $aCommand The command array
         */
        private function isuser($aCommand) {
-               global $a;
+               $a = get_app();
 
                // Check if there is a username
                if (!isset($aCommand[1])) {
@@ -214,7 +214,7 @@ class exAuth {
         * @param array $aCommand The command array
         */
        private function auth($aCommand) {
-               global $a;
+               $a = get_app();
 
                // check user authentication
                if (sizeof($aCommand) != 4) {