Company profile pic issue fixed

This commit is contained in:
gandhimathi Bharathirajan 2017-09-06 17:59:28 +05:30
parent a28b7bb71b
commit a0bc514809

View File

@ -154,7 +154,25 @@ class companycontroller extends BaseController
else
{
$Picture = $this->add();
// $Picture = $this->add();
$PictureName = $this->input->post('Image');
$ModifyPictureName = $this->input->post('ModifyImage');
if ($PictureName != '')
{
if(strlen($ModifyPictureName) == 0)
{
$Picture = $PictureName;
}
else
{
$Picture = $ModifyPictureName;
}
}
else
{
//echo 'Not Exists';
$Picture = $this->add();
}
$file =$this->addfile();
$CompID = $this->input->post('CompanyID');
$CompanyName = $this->input->post('CompanyName');