Changeset - 4226832334b0
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-02-05 21:30:37
ohnobinki@ohnopublishing.net
Remove accidentally added error_log() calls.
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
process.php
Show inline comments
 
@@ -130,28 +130,27 @@ if(!$DEBUG)
 
		   * Only add classes if the user added at least one
 
		   * section to the class. We know that $class['name']
 
		   * is not a section, so count() needs to be > 1 and
 
		   * we need to skip over 'name' in our loop.
 
		   */
 
			if(is_array($class) && count($class) > 1)
 
			{
 
				$allClasses->addCourse($class['name']);
 
		
 
				foreach($class as $section)
 
				  /* Skip the section name, which isn't a section */
 
					if(is_array($section))
 
					  {error_log(print_r($section['days'], TRUE));
 
					  $allClasses->addSection($class['name'], $section['letter'], $section['start'], $section['end'], arrayToDays($section['days'], 'alpha'), $section['synonym'], $section['professor'], $section['location'], $section['type']);
 
					  error_log(arrayToDays($section['days'], 'alpha'));
 
					}
 
					  {
 
					    $allClasses->addSection($class['name'], $section['letter'], $section['start'], $section['end'], arrayToDays($section['days'], 'alpha'), $section['synonym'], $section['professor'], $section['location'], $section['type']);
 
					  }
 
			}
 
		}
 
		$allClasses->findPossibilities();
 
		if (!isset($_SESSION['saved']))
 
		  $_SESSION['saved'] = array();
 
		$schedule_id = schedule_store_store($schedule_store, $allClasses);
 
		if ($schedule_id != NULL)
 
		  $_SESSION['saved'][$schedule_id] = $allClasses->getName();
 

	
 
		$process_php_s = '';
 
		if (!$clean_urls)
 
		  $process_php_s = 'process.php?s=';
0 comments (0 inline, 0 general)