File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 207
207
$ extra_query [] = 'program.hdtv & 1 ' ;
208
208
// Commercial-free channels only?
209
209
if ($ _SESSION ['search ' ]['commfree ' ])
210
- $ extra_query [] = 'channel.commfree=1 ' ;
210
+ $ extra_query [] = 'channel.commmethod=-2 ' ;
211
211
// Build the actual search query
212
212
$ query = '' ;
213
213
foreach ($ _SESSION ['search ' ]['as ' ] as $ i => $ string ) {
Original file line number Diff line number Diff line change 36
36
colour = ?,
37
37
hue = ?,
38
38
recpriority = ?,
39
- commfree = ?,
39
+ commmethod = ?,
40
40
useonairguide = ?,
41
41
visible = ? ' ;
42
42
$ query_params [] = $ _POST ['xmltvid_ ' .$ chanid ];
48
48
$ query_params [] = $ _POST ['colour_ ' .$ chanid ];
49
49
$ query_params [] = $ _POST ['hue_ ' .$ chanid ];
50
50
$ query_params [] = $ _POST ['recpriority_ ' .$ chanid ];
51
- $ query_params [] = empty ($ _POST ['commfree_ ' .$ chanid ]) ? 0 : 1 ;
51
+ $ query_params [] = empty ($ _POST ['commfree_ ' .$ chanid ]) ? - 1 : - 2 ;
52
52
$ query_params [] = empty ($ _POST ['useonairguide_ ' .$ chanid ]) ? 0 : 1 ;
53
53
$ query_params [] = empty ($ _POST ['visible_ ' .$ chanid ]) ? 0 : 1 ;
54
54
// next, the fields that need to have a value, so we won't change them if they were emptied
Original file line number Diff line number Diff line change 51
51
<td><input type="text" size="5" name="colour_<?php echo $ channel ['chanid ' ] ?> " id="colour_<?php echo $ channel ['chanid ' ] ?> " value="<?php echo html_entities ($ channel ['colour ' ]) ?> " style="text-align: center" /></td>
52
52
<td><input type="text" size="5" name="hue_<?php echo $ channel ['chanid ' ] ?> " id="hue_<?php echo $ channel ['chanid ' ] ?> " value="<?php echo html_entities ($ channel ['hue ' ]) ?> " style="text-align: center" /></td>
53
53
<td><input type="text" size="2" name="recpriority_<?php echo $ channel ['chanid ' ] ?> " id="recpriority_<?php echo $ channel ['chanid ' ] ?> " value="<?php echo html_entities ($ channel ['recpriority ' ]) ?> " style="text-align: center" /></td>
54
- <td><input type="checkbox" name="commfree_<?php echo $ channel ['chanid ' ] ?> " value="1"<?php if (!empty ($ channel ['commfree ' ])) echo ' CHECKED ' ?> /></td>
54
+ <td><input type="checkbox" name="commfree_<?php echo $ channel ['chanid ' ] ?> " value="1"<?php if (!empty ($ channel ['commmethod ' ]) && $ channel [ ' commmethod ' ] == - 2 ) echo ' CHECKED ' ?> /></td>
55
55
<td><input type="checkbox" name="visible_<?php echo $ channel ['chanid ' ] ?> " value="1"<?php if (!empty ($ channel ['visible ' ])) echo ' CHECKED ' ?> /></td>
56
56
<td><input type="checkbox" name="useonairguide_<?php echo $ channel ['chanid ' ] ?> " value="1"<?php if (!empty ($ channel ['useonairguide ' ])) echo ' CHECKED ' ?> /></td>
57
57
</tr><?php
You can’t perform that action at this time.
0 commit comments