From ff0b10634ed1d6b7fc4205da2bf0edebc74f5a20 Mon Sep 17 00:00:00 2001 From: Mohit Mishra Date: Wed, 25 Sep 2019 08:55:35 +0000 Subject: [PATCH] FREEPBX-20563 Restoring legacy(FreePBX 13 ,14) Backup into FreePBX 15 system is disabling CallerID superfecta schemes. Fixed. --- Superfecta.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Superfecta.class.php b/Superfecta.class.php index 7e7e51e4..81f101b5 100644 --- a/Superfecta.class.php +++ b/Superfecta.class.php @@ -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;