Skip to content

Commit

Permalink
FREEPBX-20563 Restoring legacy(FreePBX 13 ,14) Backup into FreePBX 15…
Browse files Browse the repository at this point in the history
… system is disabling CallerID superfecta schemes.

	Fixed.
  • Loading branch information
mmishra940 committed Sep 25, 2019
1 parent e291995 commit ff0b106
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Superfecta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,10 @@ public function getAllSchemes() {
foreach ($results as $data) {
$scheme_list[$i] = $data;
$scheme_list[$i]['name'] = substr($data['scheme'], 5);
$scheme_list[$i]['showdown'] = $i == $total;
$scheme_list[$i]['showup'] = $i == 1;
$scheme_list[$i]['showdown'] = $i == $total ? FALSE : TRUE;
$scheme_list[$i]['showup'] = $i == 1 ? FALSE : TRUE;
$scheme_list[$i]['showdelete'] = true;
$scheme_list[$i]['powered'] = $data['powered'] < 0;
$scheme_list[$i]['powered'] = $data['powered'] < 0 ? FALSE : TRUE;
$i++;
}
return $scheme_list;
Expand Down

0 comments on commit ff0b106

Please sign in to comment.