Skip to content

Commit

Permalink
fix: isset for data
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Oct 25, 2024
1 parent cf41283 commit 7a3fe48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Character/CharacterTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function getAssetTypeAttribute() {
*/
public function displayTitle($data) {
return '<a href="'.$this->idUrl.'"><span class="badge ml-1" style="color: white; background-color: '.$this->colour.';"'.
($data['full'] ? ' data-toggle="tooltip" title="'.$this->title.'">'.$data['full'] : '>'.$this->title)
(isset($data['full']) ? ' data-toggle="tooltip" title="'.$this->title.'">'.$data['full'] : '>'.$this->title)
.'</span></a>';
}
}

0 comments on commit 7a3fe48

Please sign in to comment.