Skip to content

Commit

Permalink
Merge pull request #13 from Mancy/master
Browse files Browse the repository at this point in the history
fix error mentioned in issue #12
  • Loading branch information
lgaetz authored Jun 20, 2022
2 parents d7a065b + ae9d02d commit 7680481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function getMembers($command) {
}
$x = 0;
for($i = ($mkeys[0] + 1); $i <= $goto; $i++) {
preg_match('/(.*)\ \(Local.*\/(\d+)(.*)(Unavailable|Not in use|Ringing|In use)(.*)taken (\d+|no) calls(.*)(was (\d+)|yet)/', $command[$i], $m);
preg_match('/(.*)\ \(Local.*\/(\d+)(.*)(Unavailable|Not in use|Ringing|In use|On Hold)(.*)taken (\d+|no) calls(.*)(last was (\d+)|yet)/', $command[$i], $m);
$last = $m[6] == 'no' ? 'N/A' : sec2hms($m[9]);
$array[$x] = array();
$array[$x]["name"] = trim($m[1]);
Expand Down

0 comments on commit 7680481

Please sign in to comment.