aboutsummaryrefslogtreecommitdiff
path: root/lib/program.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/program.php')
-rw-r--r--lib/program.php4
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',