Fix 6944 compatibility PHP7 and missing parameter to call delete function

This commit is contained in:
atm-ph 2017-06-10 13:34:28 +02:00
parent 660faac0f3
commit 5dfb988cb1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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');