CC-5450 : Refactor Media Management (Classes/DB) in Airtime

making sure to store boolean values.
This commit is contained in:
Naomi 2014-03-06 18:28:05 -05:00
parent d14041ac0a
commit 9162ec99fd
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ abstract class Playlist extends BasePlaylist implements \Interface_Playlistable
* @return PlaylistRule The current object (for fluent API support)
*/
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);
if ($rules === false) {