diff --git a/modules/tv/set_channels.php b/modules/tv/set_channels.php
index 6db27da..c77f697 100644
a
|
b
|
|
46 | 46 | // next, the fields that need to have a value, so we won't change them if they were emptied |
47 | 47 | if ($data['channum']) { |
48 | 48 | $query .= ',channum=?'; |
49 | | $query_params[] = $data['channum']; |
| 49 | $query_params[] = trim($data['channum']); |
50 | 50 | } |
51 | 51 | if ($data['callsign']) { |
52 | 52 | $query .= ',callsign=?'; |
53 | | $query_params[] = $data['callsign']; |
| 53 | $query_params[] = trim($data['callsign']); |
54 | 54 | } |
55 | 55 | if ($data['name']) { |
56 | 56 | $query .= ',name=?'; |
57 | | $query_params[] = $data['name']; |
| 57 | $query_params[] = trim($data['name']); |
58 | 58 | } |
59 | 59 | $db->query($query.' WHERE chanid=?', |
60 | 60 | $query_params, |