Ticket #10046: mythweb.patch

File mythweb.patch, 1.1 KB (added by Jerry Rubinow <jerrymr@…>, 8 years ago)
  • modules/tv/set_channels.php

    diff --git a/modules/tv/set_channels.php b/modules/tv/set_channels.php
    index 6db27da..c77f697 100644
    a b  
    4646            // next, the fields that need to have a value, so we won't change them if they were emptied
    4747                if ($data['channum']) {
    4848                    $query         .= ',channum=?';
    49                     $query_params[] = $data['channum'];
     49                    $query_params[] = trim($data['channum']);
    5050                }
    5151                if ($data['callsign']) {
    5252                    $query         .= ',callsign=?';
    53                     $query_params[] = $data['callsign'];
     53                    $query_params[] = trim($data['callsign']);
    5454                }
    5555                if ($data['name']) {
    5656                    $query         .= ',name=?';
    57                     $query_params[] = $data['name'];
     57                    $query_params[] = trim($data['name']);
    5858                }
    5959                $db->query($query.' WHERE chanid=?',
    6060                           $query_params,