зеркало из https://github.com/mozilla/gecko-dev.git
Fix path in logout and fix notice.
This commit is contained in:
Родитель
41485f71b8
Коммит
aed4828e6c
|
@ -36,7 +36,7 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
require_once('../../config.inc.php');
|
require_once('../config.inc.php');
|
||||||
require_once($config['base_path'].'/includes/iolib.inc.php');
|
require_once($config['base_path'].'/includes/iolib.inc.php');
|
||||||
|
|
||||||
// start the session
|
// start the session
|
||||||
|
@ -48,7 +48,7 @@ printheaders();
|
||||||
$_SESSION = array();
|
$_SESSION = array();
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
||||||
if($_SESSION['username']){
|
if(isset($_SESSION['username'])){
|
||||||
// not sure if this could ever happen, but just in case.
|
// not sure if this could ever happen, but just in case.
|
||||||
echo 'Failed to logout';
|
echo 'Failed to logout';
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче