[eluser]Unknown[/eluser]
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: email
Filename: controllers/login.php
Line Number: 158
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: email
Filename: controllers/login.php
Line Number: 167
Okay, so here I am again, begging even just for a little of your knowledge to share with me.
I have this page that shows account owners their information. I get this error every time I try to view an account information in my system. The controller for this page is controller.php. Here's the lines that points to the error:
Code:
public function update_details(){
(!isset($_SESSION['uid'])) ? session_start() : false;
$this->load->library('table');
$this->load->model('User','user');
$this->load->model('Utilities','util');
$this->load->helper(array('date','form'));
$this->data['uname'] = $_SESSION['uid'];
$this->data['fullname'] = $_SESSION['name'];
$this->data['EMAIL'] = $_SESSION['email']; //this is line 158
//$this->data['team'] = $_SESSION['team'];
$this->data['date'] = date('l, F j, o',now());
$this->data['title'] = "My Account";
$acct_name = array('name'=>'fullname', 'maxlength'=>'40', 'size'=>'40', 'value'=>$_SESSION['name'], 'readonly'=>'readonly');
$this->table->add_row($this->util->set_label('Account Name'),form_input($acct_name));
$eadd = array('name'=>'email', 'maxlength'=>'40', 'size'=>'40', 'value'=>$_SESSION['email']); //this is line 167
$this->table->add_row($this->util->set_label('Email Address'),form_input($eadd));
$save = array('name'=>'update_account', 'class'=>'submit_but', 'value'=>'true', 'content'=>'Save Changes','type'=>'submit');
$this->table->add_row('',form_button($save));
$this->data['disp'] = form_open('login/redirect', array('name'=>'formEditAccount'));
$this->data['disp'] .= $this->table->generate();
$this->load->view($this->accounts, $this->data);
}
Can anyone help me on this? Thanks in advance!