Title: Wrong variable name in Services/Request_Service.php
Last modified: June 21, 2024

---

# Wrong variable name in Services/Request_Service.php

 *  Resolved [quinze](https://wordpress.org/support/users/quinze/)
 * (@quinze)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-variable-name-in-services-request_service-php/)
 * In wpo365-login/Services/Request_Service.php on line 71 the variable $state that
   is strictly compared to false, should be $relay_state
 *     ```wp-block-code
           68	if (!empty($is_saml_response = !empty($_POST['RelayState']) && !empty($_REQUEST['SAMLResponse']))) {    69	                    $relay_state = Router_Service::process_state_url($_POST['RelayState'], $request);    70	    71	                    if (false === $relay_state) {    72	                        $is_saml_response = false;    73	                    } else {    74	                        $request->set_item('relay_state', $relay_state); // -> Cannot be unset because there dependies relying on it    75	                    }    76	                }
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marco van Wieren](https://wordpress.org/support/users/wpo365/)
 * (@wpo365)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-variable-name-in-services-request_service-php/#post-17841385)
 * Hi [@quinze](https://wordpress.org/support/users/quinze/)
 * You’re absolutely right! Not sure how that was missed, but it was!
 * Thank you for bringing this to my attention. Version 28.2 has just been released
   and should fix this.
 * Hope this helps!
 * -Marco

Viewing 1 replies (of 1 total)

The topic ‘Wrong variable name in Services/Request_Service.php’ is closed to new
replies.

 * ![](https://ps.w.org/wpo365-login/assets/icon-256x256.png?rev=2683314)
 * [WPO365 | SEAMLESS WORDPRESS + MICROSOFT INTEGRATION (WPO365 | LOGIN)](https://wordpress.org/plugins/wpo365-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpo365-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpo365-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wpo365-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpo365-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpo365-login/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marco van Wieren](https://wordpress.org/support/users/wpo365/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wrong-variable-name-in-services-request_service-php/#post-17841385)
 * Status: resolved