Changeset - 2563473a88be
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-16 13:27:48
ohnobinki@ohnopublishing.net
Fix some variable names.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
auto.php
Show inline comments
 
@@ -70,16 +70,16 @@ if (!$school['crawled'])
 
$dept = $term_parts['department'];
 
if (!$getsections && count($term_parts) == 1 && $term_strlen == strlen($dept))
 
  {
 
    $dept_file = $cache_dir . '-depts';
 
    if (!file_exists($dept_file))
 
      clean_empty_exit();
 
    $deptartments = unserialize(file_get_contents($dept_file));
 
    foreach ($deptartments as $key => $department)
 
    $departments = unserialize(file_get_contents($dept_file));
 
    foreach ($departments as $key => $department)
 
      {
 
	if (!strncmp($department, $dept, $term_strlen))
 
	if (!strncmp($department, $dept, $dept_strlen))
 
	  $departments[$key] = $department;
 
	else
 
	  unset($departments[$key]);
 
      }
 
    echo json_encode($departments);
 
    exit(0);
0 comments (0 inline, 0 general)