Fix path in logout and fix notice.

This commit is contained in:
robert%accettura.com 2006-01-26 01:27:43 +00:00
Родитель 41485f71b8
Коммит aed4828e6c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 {