diff --git a/Admin/Installer.php b/Admin/Installer.php index c65467b..cee9975 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -46,7 +46,7 @@ final class Installer extends InstallerAbstract public static function installExternal(DatabasePool $dbPool, array $data) : void { try { - $dbPool->get()->con->query('select 1 from `' . $dbPool->get()->prefix . 'nav`'); + $dbPool->get()->con->query('select 1 from `nav`'); } catch (\Exception $e) { return; } diff --git a/Models/Navigation.php b/Models/Navigation.php index 1366305..ba1b00f 100644 --- a/Models/Navigation.php +++ b/Models/Navigation.php @@ -90,7 +90,6 @@ class Navigation $this->nav = []; $query = new Builder($this->dbPool->get('select')); - $query->prefix($this->dbPool->get('select')->prefix); $sth = $query->select('*') ->from('nav') ->whereIn('nav.nav_pid', $hashes)