From e18c28db714eb91259cab7995b1ef4368a5529a7 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Wed, 2 Feb 2005 00:18:59 +0000 Subject: [PATCH] Retrieve email from current user object --- appsubmit.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/appsubmit.php b/appsubmit.php index 758a0d6..69b6ed0 100644 --- a/appsubmit.php +++ b/appsubmit.php @@ -2,11 +2,9 @@ /************************************/ /* code to Submit a new application */ /************************************/ - -# ENVIRONMENT AND HEADER include("path.php"); -require(BASE."include/"."incl.php"); -require(BASE."include/"."tableve.php"); +require(BASE."include/incl.php"); +require(BASE."include/tableve.php"); // Send user to the correct branch of code even if they try to bypass // the first page (appsubmit.php without parameters) @@ -105,9 +103,9 @@ if (isset($_REQUEST['queueName'])) ####################################### else if (isset($_REQUEST['apptype'])) { - // set email field if logged in - if ($_SESSION['current']->isLoggedIn()) - $email = $_SESSION['current']->lookup_email($_SESSION['current']->userid); + // set email field if logged in + if ($_SESSION['current']->isLoggedIn()) + $email = $_SESSION['current']->sEmail; // header apidb_header("Submit Application");