Fix an error that could occur during upgrades. This will make the upgrade from older versions a little easier.
This commit is contained in:
parent
b7b8984d2f
commit
770abd3fcc
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue