Fix: Using = on result of a function is a syntax error

This commit is contained in:
Laurent Destailleur 2011-06-05 22:49:11 +00:00
parent 889f2b38b8
commit 1ed46f0ca4

View File

@ -261,7 +261,7 @@ class ActionsCardCommon
$oldsoccanvas->getCanvas('thirdparty','card',$this->object->canvas);
$result=$oldsoccanvas->fetch($socid);
// To do not set code if third party is not concerned. But if it had values, we keep them.
// To avoid setting code if third party is not concerned. But if it had values, we keep them.
if (empty($this->object->client) && empty($oldsoccanvas->control->object->code_client)) $this->object->code_client='';
if (empty($this->object->fournisseur)&& empty($oldsoccanvas->control->object->code_fournisseur)) $this->object->code_fournisseur=''; //var_dump($soccanvas);exit;
@ -276,7 +276,7 @@ class ActionsCardCommon
$this->object->id = $socid;
$reload = 0;
$this->errors = $this->object->errors;
GETPOST("action")= "edit";
$_GET["action"]="edit";
}
}
}
@ -297,7 +297,7 @@ class ActionsCardCommon
{
$reload = 0;
$this->errors=$this->object->errors;
GETPOST("action")='';
$_GET["action"]='';
}
}