Commit 86a52f49 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1636866: Allowing the empty check of get_config() option

The pre php5.5 "Can't use method return value in write context" issue


Change-Id: Ie5f122d96eddb643b3931eac29e8367323611cf8
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent b8628d65
......@@ -450,7 +450,8 @@ class PluginAuthSaml extends PluginAuth {
$libchecks .= '<li>' . get_string('errorbadlib', 'auth.saml', get_config('docroot') .'auth/saml/extlib/simplesamlphp/vendor/autoload.php') . '</li>';
// Make sure we can use 'memcache' with simplesamlphp as 'phpsession' doesn't work correctly in many situations
if (empty(get_config('memcacheservers')) && !extension_loaded('memcache')) {
$memcacheservers_config = get_config('memcacheservers');
if (empty($memcacheservers_config) && !extension_loaded('memcache')) {
$libchecks .= '<li>' . get_string('errornomemcache', 'auth.saml') . '</li>';
if (!empty($libchecks)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment