-- Bug fix

This commit is contained in:
PhantomVl 2020-04-21 14:44:56 +03:00 committed by Diederik de Groot
parent 5cebb936c9
commit 347f6f6702
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6

View file

@ -2272,7 +2272,25 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO
}
return $interfaces;
}
private function strpos_array($haystack, $needles) {
if (is_array($needles)) {
foreach ($needles as $str) {
if (is_array($str)) {
$pos = strpos_array($haystack, $str);
} else {
$pos = strpos($haystack, $str);
}
if ($pos !== FALSE) {
return $pos;
}
}
} else {
return strpos($haystack, $needles);
}
return FALSE;
}
private function findAllFiles($dir, $file_mask = null, $mode = 'full')
{
$result = null;