From c9105da98689d097e8ea9b4d578dba4834183171 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 27 Feb 2015 19:59:50 +0100 Subject: check for apc-functions before using them --- lib/program.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/program.php b/lib/program.php index effb63e..79ce91d 100644 --- a/lib/program.php +++ b/lib/program.php @@ -5,7 +5,7 @@ function program() if(!has('SCHEDULE')) return; - if(has('SCHEDULE.CACHE')) + if(has('SCHEDULE.CACHE') && function_exists('apc_fetch')) { $program = apc_fetch('SCHEDULE.CACHE'); if($program) return $program; @@ -155,7 +155,7 @@ function program() } } - if(has('SCHEDULE.CACHE')) + if(has('SCHEDULE.CACHE') && function_exists('apc_store')) { apc_store( 'SCHEDULE.CACHE', -- cgit v1.2.3