Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
-
None
Description
$ curl 'https://OBSERVIUM/api.php?username=demo&password=demo&module=demo'
|
<br />
|
<b>Fatal error</b>: Call to undefined function session_logout() in <b>/srv/observium/html/includes/authentication/mysql.inc.php</b> on line <b>37</b><br />
|
The attached patch does:
- move session_logout() to somewhere that is included (to includes/common.inc.php)
- adding code to ensure that session_logout does not break if no session has been started (the session_status() != PHP_SESSION_ACTIVE check)