mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Fix Scrutinizer reported errors
This commit is contained in:
parent
4a2d7b97f6
commit
80cd08ed04
29 changed files with 117 additions and 92 deletions
|
@ -100,10 +100,12 @@ class Channel extends database_object implements media, library_item
|
|||
{
|
||||
$tags = Tag::get_object_tags('channel', $this->id);
|
||||
$genre = "";
|
||||
foreach ($tags as $tag) {
|
||||
$genre .= $tag['name'] . ' ';
|
||||
if ($tags) {
|
||||
foreach ($tags as $tag) {
|
||||
$genre .= $tag['name'] . ' ';
|
||||
}
|
||||
$genre = trim($genre);
|
||||
}
|
||||
$genre = trim($genre);
|
||||
|
||||
return $genre;
|
||||
}
|
||||
|
@ -447,4 +449,14 @@ class Channel extends database_object implements media, library_item
|
|||
// Do nothing
|
||||
}
|
||||
|
||||
public function get_transcode_settings($array, $callback = false, $type = '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function gc()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} // end of channel class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue