Fix 6944 compatibility PHP7 and missing parameter to call delete function
This commit is contained in:
parent
660faac0f3
commit
5dfb988cb1
@ -533,7 +533,7 @@ class PaiementFourn extends Paiement
|
|||||||
* @param string $option Sur quoi pointe le lien
|
* @param string $option Sur quoi pointe le lien
|
||||||
* @return string Chaine avec URL
|
* @return string Chaine avec URL
|
||||||
*/
|
*/
|
||||||
function getNomUrl($withpicto=0,$option='')
|
function getNomUrl($withpicto=0,$option='',$mode='withlistofinvoices')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
|||||||
@ -218,7 +218,7 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$object->fetch_thirdparty();
|
$object->fetch_thirdparty();
|
||||||
$result=$object->delete($id);
|
$result=$object->delete($user, $id);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
header('Location: list.php');
|
header('Location: list.php');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user