Company profile pic issue fixed
This commit is contained in:
parent
a28b7bb71b
commit
a0bc514809
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user