diff --git a/application/controllers/employeedetails.php b/application/controllers/employeedetails.php index 3a0ba9d3..346571a8 100755 --- a/application/controllers/employeedetails.php +++ b/application/controllers/employeedetails.php @@ -509,12 +509,7 @@ echo "";redirect('employeeListing',' function ViewEmployee($EmpNO='') { - if($this->isAdmin() == TRUE) - { - $this->loadThis(); - } - else - { + if($EmpNO == '') { $EmpID = $_GET['EmpID']; @@ -543,7 +538,7 @@ echo "";redirect('employeeListing',' $this->loadViews("editEmployee", $this->global, $data, NULL); - } + } /* To Check the email exists in the database or not for the employee*/ function checkMailEmp()