# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-21 18:22:13 # Node ID b65dd106baf2daaca7cde694927c4fab5773bc7e # Parent 10a9e818215c2b4150deb0131474d691efc80957 Guard against another PHP notice. diff --git a/inc/school.inc b/inc/school.inc --- a/inc/school.inc +++ b/inc/school.inc @@ -286,7 +286,7 @@ function _school_cache_load() $cache_file_name = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'schools'; $cache_serialized = @file_get_contents($cache_file_name); - if (isset($cache_serialized)) + if (!empty($cache_serialized)) $cache = unserialize($cache_serialized); return $cache;