Skip to content

Commit

Permalink
Merge pull request #10
Browse files Browse the repository at this point in the history
First stableish version
  • Loading branch information
leonardosahon authored Dec 25, 2023
2 parents 5da2bca + f32af27 commit cf621e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/BobDBuilder/Cmd/Traits/Make/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ public function update_general_domain_entry(string $domain, string $domain_id, s
$page_index++;
}

$default_domain = [''];
$default_domain = end($domains);
array_pop($domains);

if(!$this->plug->is_internal) {
$default_domain = end($domains);
array_pop($domains);
if($existing_domain_key)
unset($domains[$existing_domain_key]);

if($existing_domain_key)
unset($domains[$existing_domain_key]);
if($this->plug->is_internal && $domain == "Default") {
$default_domain = [''];
}

$domains = SQL::new()->array_flatten($domains);
Expand Down

0 comments on commit cf621e0

Please sign in to comment.