Advertisement
Guest User

Untitled

a guest
Apr 30th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git a/modules/tv/classes/Schedule.php b/modules/tv/classes/Schedule.php
  2. index 1e696eb..5f1b00f 100644
  3. --- a/modules/tv/classes/Schedule.php
  4. +++ b/modules/tv/classes/Schedule.php
  5. @@ -275,6 +275,10 @@ class Schedule extends MythBase {
  6. }
  7. // Update the type, in case it changed
  8. $this->type = $new_type;
  9. + // Clear the the search column for non-manual overrides.
  10. + if (($this->type == rectype_override || $this->type == rectype_dontrec) &&
  11. + $this->search != searchtype_manual)
  12. + $this->search = 0;
  13. // Update the record
  14. $sh = $db->query('REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,
  15. title,subtitle,description,profile,recpriority,category,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement