# HG changeset patch # User Nathan Phillip Brink # Date 2011-03-03 19:14:41 # Node ID aad2525d04c802e00fad018abc63102ddd8f7150 # Parent 31f302e8171c8e0374305ef039088b4d5045e336 Fix another PHP notice/warning. diff --git a/admin.php b/admin.php --- a/admin.php +++ b/admin.php @@ -109,11 +109,14 @@ require_once('inc/admin.inc'); } function getLastRehash(){ - $stats = stat("cache/schools"); + $schoollist_filename = 'cache/schools'; + if (!file_exists($schoollist_filename)) + return FALSE; + $stats = stat($schoollist_filename); if(!$stats){ - return false; + return FALSE; } - return date("F j, Y, g:i a", $stats[9]); + return date('F j, Y, g:i a', $stats[9]); } function schoolsDropList()