From: Garth Mollett Date: Wed, 3 Dec 2008 12:05:05 +0000 (+0100) Subject: Fixed authentication problem in import X-Git-Tag: 0.7.1~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5dc420a8addd3047ed2e7a9864b0adafd5c851f;p=contagged Fixed authentication problem in import darcs-hash:20081203120505-88a57-dccea3816e45886e1702d4f1f1d66f5cdf4ae76f.gz --- diff --git a/import.php b/import.php index 96579ef..28006ed 100644 --- a/import.php +++ b/import.php @@ -3,7 +3,7 @@ require_once('inc/init.php'); require_once('inc/Contact_Vcard_Parse.php'); ldap_login(); -if(!$user){ +if(!$_SESSION['ldapab']['username']){ header("Location: login.php"); exit; }