mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -118,7 +118,7 @@ class events {
|
||||
* @return boolean $value
|
||||
*/
|
||||
public function check_required($category) {
|
||||
foreach ($this->required['headers'] as &$header) {
|
||||
foreach ($this->required['headers'] as $header) {
|
||||
if ($category == $header) {
|
||||
return true;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ class events {
|
||||
*/
|
||||
public function send() {
|
||||
//check for required headers are present return false if any are missing
|
||||
foreach ($this->headers as &$header) {
|
||||
foreach ($this->headers as $header) {
|
||||
if (!$this->check_required($header)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user