Changeset - 976b47d1e19e
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 13 years ago 2012-04-26 22:20:01
ohnobinki@ohnopublishing.net
Fix PHP notice when loading section_meetings which were created before Sunday was invented.
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
inc/class.section_meeting.inc
Show inline comments
 
@@ -280,4 +280,16 @@ class SectionMeeting
 
	$days .= $day;
 
    return new SectionMeeting($days, $json_array['time_start'], $json_array['time_end'], $json_array['location'], $json_array['type'], $json_array['instructor']);
 
  }
 

	
 
  /**
 
   * \brief
 
   *   Upgrade this section_meeting to support Sunday and Saturday.
 
   */
 
  public function __wakeup()
 
  {
 
    if (empty($this->days[5]))
 
      $this->days[5] = FALSE;
 
    if (empty($this->days[6]))
 
      $this->days[6] = FALSE;
 
  }
 
}
0 comments (0 inline, 0 general)