CC-5450 : Refactor Media Management (Classes/DB) in Airtime
making sure to store boolean values.
This commit is contained in:
parent
d14041ac0a
commit
9162ec99fd
|
@ -128,7 +128,10 @@ abstract class Playlist extends BasePlaylist implements \Interface_Playlistable
|
||||||
* @return PlaylistRule The current object (for fluent API support)
|
* @return PlaylistRule The current object (for fluent API support)
|
||||||
*/
|
*/
|
||||||
public function setRules($v)
|
public function setRules($v)
|
||||||
{
|
{
|
||||||
|
$v[self::RULE_REPEAT_TRACKS] = ($v[self::RULE_REPEAT_TRACKS] === "true") ? true : false;
|
||||||
|
$v[self::RULE_USERS_TRACKS_ONLY] = ($v[self::RULE_USERS_TRACKS_ONLY] === "true") ? true : false;
|
||||||
|
|
||||||
$rules = json_encode($v);
|
$rules = json_encode($v);
|
||||||
|
|
||||||
if ($rules === false) {
|
if ($rules === false) {
|
||||||
|
|
Loading…
Reference in New Issue