mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -845,7 +845,7 @@
|
||||
if (is_numeric(trim($phone_number ?? '', ' +'))) {
|
||||
if (isset($_SESSION["format"]["phone"])) {
|
||||
$phone_number = trim($phone_number, ' +');
|
||||
foreach ($_SESSION["format"]["phone"] as &$format) {
|
||||
foreach ($_SESSION["format"]["phone"] as $format) {
|
||||
$format_count = substr_count($format, 'x');
|
||||
$format_count = $format_count + substr_count($format, 'R');
|
||||
$format_count = $format_count + substr_count($format, 'r');
|
||||
|
||||
Reference in New Issue
Block a user