fix php 8 warning
This commit is contained in:
parent
b1c4aa07f0
commit
eba9f695c2
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -592,15 +593,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
'recordjoinpiece'=>'AttachJoinedDocumentsToObject',
|
'recordjoinpiece'=>'AttachJoinedDocumentsToObject',
|
||||||
'recordevent'=>'RecordEvent');
|
'recordevent'=>'RecordEvent');
|
||||||
$arrayoftypesnocondition = $arrayoftypes;
|
$arrayoftypesnocondition = $arrayoftypes;
|
||||||
if ($conf->projet->enabled) {
|
if (!empty($conf->projet->enabled)) {
|
||||||
$arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
$arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['project'] = 'CreateLeadAndThirdParty';
|
$arrayoftypesnocondition['project'] = 'CreateLeadAndThirdParty';
|
||||||
if ($conf->ticket->enabled) {
|
if (!empty($conf->ticket->enabled)) {
|
||||||
$arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
$arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['ticket'] = 'CreateTicketAndThirdParty';
|
$arrayoftypesnocondition['ticket'] = 'CreateTicketAndThirdParty';
|
||||||
if ($conf->recruitment->enabled) {
|
if (!empty($conf->recruitment->enabled)) {
|
||||||
$arrayoftypes['candidature'] = 'CreateCandidature';
|
$arrayoftypes['candidature'] = 'CreateCandidature';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['candidature'] = 'CreateCandidature';
|
$arrayoftypesnocondition['candidature'] = 'CreateCandidature';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user