summaryrefslogtreecommitdiff
path: root/lib/statusnet.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/statusnet.php')
-rw-r--r--lib/statusnet.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index eba9ab9b8..ef3adebf9 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -342,7 +342,11 @@ class StatusNet
if (array_key_exists('memcached', $config)) {
if ($config['memcached']['enabled']) {
- addPlugin('Memcache', array('servers' => $config['memcached']['server']));
+ if(class_exists('Memcached')) {
+ addPlugin('Memcached', array('servers' => $config['memcached']['server']));
+ } else {
+ addPlugin('Memcache', array('servers' => $config['memcached']['server']));
+ }
}
if (!empty($config['memcached']['base'])) {