mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix an error that could occur during upgrades. This will make the upgrade from older versions a little easier.
This commit is contained in:
@@ -79,8 +79,9 @@ function load_extensions() {
|
||||
$sql .= " and e.enabled = 'true' ";
|
||||
$sql .= "order by ";
|
||||
$sql .= " e.extension asc ";
|
||||
$result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC);
|
||||
if (count($result) > 0) {
|
||||
$query = $pdo->query($sql);
|
||||
if($query !== false) {
|
||||
$result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC);
|
||||
$x = 0;
|
||||
foreach($result as $row) {
|
||||
$destination = $row['extension'];
|
||||
|
||||
Reference in New Issue
Block a user