Changeset - 21a52190eb20
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-18 18:56:02
ohnobinki@ohnopublishing.net
Avoid a particular PHP warning on the first run of admin/rehash.php.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/school.inc
Show inline comments
 
@@ -76,25 +76,25 @@ function school_load($school_id, $load_a
 

	
 
  $school_info = $school_id . '_info';
 
  $school += $school_info();
 

	
 
  /*
 
   * append small amount of info from the cache entry for this school:
 
   * whether or not it was crawled.
 
   *
 
   * Perhaps this stuff should be just moved into the _info function
 
   * for efficiency.
 
   */
 
  $cache = _school_cache_load();
 
  if ($cache && count($cache['list']))
 
  if ($cache && count($cache['list']) && isset($cache['list'][$school['id']]))
 
    $school['crawled'] = $cache['list'][$school['id']]['crawled'];
 

	
 
  return $school;
 
}
 

	
 
/**
 
 * \brief
 
 *   Tries to guess what school a connection comes from.
 
 *
 
 * This function checks if $_REQUEST['school'] is set to a valid
 
 * school, so that the user can manually choose his school. Then it
 
 * chcecks if the user's session specifies what school profile to
0 comments (0 inline, 0 general)