aboutsummaryrefslogtreecommitdiff
path: root/lib/program.php
diff options
context:
space:
mode:
authorMaZderMind2015-02-27 19:59:50 +0100
committerMaZderMind2015-02-27 19:59:50 +0100
commitc9105da98689d097e8ea9b4d578dba4834183171 (patch)
tree35fab5339c8fae1982fd9e3afc8468acb7720ec0 /lib/program.php
parent40c0a97e7b4ec5aad5549669f1481f5b257652d0 (diff)
check for apc-functions before using them
Diffstat (limited to '')
-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',