Commit c82f94aa authored by japerry's avatar japerry
Browse files

Ensure debug returns True or False if the settings doesn't exist yet.

parent b9e4ad6f
......@@ -109,7 +109,11 @@ class MemcacheBackend implements CacheBackendInterface {
private function debug() :bool {
try {
return \Drupal::service('memcache.settings')->get('debug');
$debug = \Drupal::service('memcache.settings')->get('debug');
if ($debug) {
return $debug;
return false;
catch (ServiceNotFoundException $e) {
return false;
Markdown is supported
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