# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-18 18:56:02 # Node ID 21a52190eb20908de2e44046993ead1dcbb655f5 # Parent 3a9abbabd1254b0b1ba65171893599cbd78ed2b8 Avoid a particular PHP warning on the first run of admin/rehash.php. diff --git a/inc/school.inc b/inc/school.inc --- a/inc/school.inc +++ b/inc/school.inc @@ -85,7 +85,7 @@ function school_load($school_id, $load_a * 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;