From bd2f9706150ab1479c944e9a3397cdbfcbcfbc5f Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 26 Mar 2024 13:23:24 +0100 Subject: [PATCH] Fix arguments to dol_get_fiche_head --- htdocs/public/project/suggestbooth.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/public/project/suggestbooth.php b/htdocs/public/project/suggestbooth.php index f97de413b3b..005122121be 100644 --- a/htdocs/public/project/suggestbooth.php +++ b/htdocs/public/project/suggestbooth.php @@ -1,5 +1,6 @@ + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -278,7 +279,7 @@ if (empty($reshook) && $action == 'add') { } $thirdparty->code_client = $tmpcode; $readythirdparty = $thirdparty->create($user); - if ($readythirdparty <0) { + if ($readythirdparty < 0) { $error++; $errmsg .= $thirdparty->error; $errors = array_merge($errors, $thirdparty->errors); @@ -291,7 +292,7 @@ if (empty($reshook) && $action == 'add') { if (!$error) { $contact = new Contact($db); $resultcontact = $contact->fetch('', '', '', $email); - if ($resultcontact<=0) { + if ($resultcontact <= 0) { // Need to create a contact $contact->socid = $thirdparty->id; $contact->lastname = (string) GETPOST("lastname", 'alpha'); @@ -305,7 +306,7 @@ if (empty($reshook) && $action == 'add') { $contact->statut = 1; //Default status to Actif $resultcreatecontact = $contact->create($user); - if ($resultcreatecontact<0) { + if ($resultcreatecontact < 0) { $error++; $errmsg .= $contact->error; } @@ -318,7 +319,7 @@ if (empty($reshook) && $action == 'add') { $resultcategory = $category->fetch(getDolGlobalString('EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH')); - if ($resultcategory<=0) { + if ($resultcategory <= 0) { $error++; $errmsg .= $category->error; } else { @@ -403,13 +404,13 @@ if (empty($reshook) && $action == 'add') { } else { $resultconforbooth = $conforbooth->create($user); } - if ($resultconforbooth<=0) { + if ($resultconforbooth <= 0) { $error++; $errmsg .= $conforbooth->error; } else { // Adding the contact to the project $resultaddcontact = $conforbooth->add_contact($contact->id, 'RESPONSIBLE'); - if ($resultaddcontact<0) { + if ($resultaddcontact < 0) { $error++; $errmsg .= $conforbooth->error; } else { @@ -621,7 +622,7 @@ print ''; print '
'.$langs->trans("FieldsWithAreMandatory", '*').'
'; //print $langs->trans("FieldsWithIsForPublic",'**').'
'; -print dol_get_fiche_head(''); +print dol_get_fiche_head(); print '