From 87a5a2ca12e25aa60f0df0bcc7306edde9a10d79 Mon Sep 17 00:00:00 2001 From: Mohamed DAOUD Date: Sat, 8 Jun 2024 19:48:16 +0200 Subject: [PATCH] Fix warnings technical debt (#29907) * fix warning * Technical debt * fix --- htdocs/comm/action/class/actioncomm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index c234d33ae2f..4c06ab53fd2 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -1254,7 +1254,7 @@ class ActionComm extends CommonObject if (!empty($this->socpeopleassigned)) { $already_inserted = array(); - foreach (array_keys($this->socpeopleassigned) as $key => $val) { + foreach ($this->socpeopleassigned as $val) { if (!is_array($val)) { // For backward compatibility when val=id $val = array('id' => $val); }