diff options
author | MaZderMind | 2015-02-27 19:59:50 +0100 |
---|---|---|
committer | MaZderMind | 2015-02-27 19:59:50 +0100 |
commit | c9105da98689d097e8ea9b4d578dba4834183171 (patch) | |
tree | 35fab5339c8fae1982fd9e3afc8468acb7720ec0 /lib | |
parent | 40c0a97e7b4ec5aad5549669f1481f5b257652d0 (diff) |
check for apc-functions before using them
Diffstat (limited to 'lib')
-rw-r--r-- | lib/program.php | 4 |
1 files 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', |