From 2f08ddef5485ea497ec2d0a50fc63b65c8a0ce0d Mon Sep 17 00:00:00 2001 From: Niklas Spanring Date: Wed, 26 Aug 2015 15:04:50 +0200 Subject: [PATCH] Fix: travis-ci error actions_sendmails.inc.php error line="124""The use of function sizeof() is forbidden; use count() instead" error line="229" "The use of function sizeof() is forbidden; use count() instead" --- htdocs/core/actions_sendmails.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php index 93c495077ec..67458fd401d 100644 --- a/htdocs/core/actions_sendmails.inc.php +++ b/htdocs/core/actions_sendmails.inc.php @@ -121,7 +121,7 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO { setEventMessage($langs->trans('ErrorFailedToFindSocieteRecord',$_POST['sendto']),'errors'); } - elseif (sizeof($possibleaccounts)>1) + elseif (count($possibleaccounts)>1) { $sendtosocid=$possibleaccounts[1]['id']; $result=$object->fetch($sendtosocid); @@ -226,7 +226,7 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO if($conf->dolimail->enabled) { $mailfromid = explode ("#", $_POST['frommail'],3); - if (sizeof($mailfromid)==0) $from = $_POST['fromname'] . ' <' . $_POST['frommail'] .'>'; + if (count($mailfromid)==0) $from = $_POST['fromname'] . ' <' . $_POST['frommail'] .'>'; else { $mbid = $mailfromid[1];