diff --git a/resources/switch.php b/resources/switch.php index 3db53a71d6..096b5d4921 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -79,7 +79,7 @@ function load_extensions() { $sql .= " and e.enabled = 'true' "; $sql .= "order by "; $sql .= " e.extension asc "; - $query = $pdo->query($sql); + $query = $db->query($sql); if($query !== false) { $result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC); $x = 0;