Skip to content

Commit

Permalink
Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhhazelaar committed Nov 5, 2024
1 parent 814bbb2 commit 0949242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sites/Sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Statamic\Eloquent\Sites;

use Statamic\Support\Str;
use Illuminate\Support\Facades\Schema;
use Statamic\Support\Str;

class Sites extends \Statamic\Sites\Sites
{
protected function getSavedSites()
{
$sitesTable = config('statamic.eloquent-driver.table_prefix', '').'entries';
if(! Schema::hasTable($sitesTable)) {
if (! Schema::hasTable($sitesTable)) {
return $this->getFallbackConfig();
};
}

$sites = app('statamic.eloquent.sites.model')::all();

Expand Down

0 comments on commit 0949242

Please sign in to comment.