Sonar fixes.

This commit is contained in:
Cody Cook 2024-05-06 23:04:45 -07:00
commit 5db46c220c
5 changed files with 13 additions and 6 deletions

View file

@ -67,5 +67,3 @@ class CustomCDN
$this->public = false; $this->public = false;
} }
} }
?>

View file

@ -97,8 +97,12 @@ class Mix
if ($this->loadDJs) { if ($this->loadDJs) {
require_once 'DJ.php'; require_once 'DJ.php';
$this->djs[] = new DJ($mix['dj1'], $this->db); $this->djs[] = new DJ($mix['dj1'], $this->db);
if ($mix['dj2'] != null) $this->djs[] = new DJ($mix['dj2'], $this->db); if ($mix['dj2'] != null) {
if ($mix['dj3'] != null) $this->djs[] = new DJ($mix['dj3'], $this->db); $this->djs[] = new DJ($mix['dj2'], $this->db);
}
if ($mix['dj3'] != null) {
$this->djs[] = new DJ($mix['dj3'], $this->db);
}
$this->djs = array_filter($this->djs); $this->djs = array_filter($this->djs);
} }

View file

@ -90,6 +90,11 @@ function social_line($social, $value): string
$color = "#39E09B"; $color = "#39E09B";
$name = "Linktree"; $name = "Linktree";
break; break;
default:
$icon = "fa-solid fa-link";
$url = $value;
$name = "Website";
break;
} }
return " return "