Closed dariocast closed 5 years ago
In Playlist trait, may this function is incorrect:
public function playlist_add( $url, $title, $image = false, $token = false ) { $item = array( 'title' => $title, 'image' => ! $token ? null: $image, 'token' => ! $token ? md5( $url ): $token, 'url' => $url ); $this->playlist[] = $item; }
on second array element may condition should be on $image instead that on $token
$image
$token
Oh yes! Thank you for that hint! I will change this.
In Playlist trait, may this function is incorrect:
on second array element may condition should be on
$image
instead that on$token