[icinga-checkins] icinga.org: icinga-web/next: Fixed session_destroy raising an PHPError when no session exists

git at icinga.org git at icinga.org
Fri Apr 19 12:01:46 CEST 2013


Module: icinga-web
Branch: next
Commit: 0ae0d211e98f162eaf9db2fe6593d715c04fbe4d
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=0ae0d211e98f162eaf9db2fe6593d715c04fbe4d

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Fri Apr 19 12:01:42 2013 +0200

Fixed session_destroy raising an PHPError when no session exists

This caused Api calls to crash if the auth key is used

refs #3973

---

 ...IcingaApiAuthentificationLogoutFilter.class.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php b/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php
index b504560..e774cbc 100644
--- a/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php
+++ b/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php
@@ -36,7 +36,7 @@ class IcingaApiAuthentificationLogoutFilter extends AgaviFilter implements Agavi
         
         if ($flag === true && $user->isAuthenticated()) {
             $user->doLogout();
-            session_destroy(); // Remove session from database
+            @session_destroy(); // Remove session from database
         }
     }
 }
\ No newline at end of file





More information about the icinga-checkins mailing list