Fix Expected an object instance & duplicate assignment
# Fix Expected an object instance & duplicate assignment Fix: ticket.class.php: PhanTypeExpectedObjectOrClassName: Expected an object instance or the name of a class but saw expression $classname with type ''|string Fix: ticket.class.php: PhanPluginRedundantAssignment: Assigning '' to variable $sendtocc which already has that value
This commit is contained in:
parent
e92d6230df
commit
903d9d52de
1 changed files with 1 additions and 2 deletions
|
|
@ -2430,7 +2430,7 @@ class Ticket extends CommonObject
|
|||
}
|
||||
}
|
||||
|
||||
if ($filefound) {
|
||||
if ($classname !== '') {
|
||||
$result = dol_include_once($reldir."core/modules/ticket/".$modele.'.php');
|
||||
$modTicket = new $classname();
|
||||
|
||||
|
|
@ -2992,7 +2992,6 @@ class Ticket extends CommonObject
|
|||
$array_receiver = array_merge($array_receiver, $this->getInfosTicketExternalContact(1));
|
||||
}
|
||||
|
||||
$sendtocc = "";
|
||||
if ($send_internal_cc) {
|
||||
$sendtocc = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue