Skip to content
Snippets Groups Projects
Commit c82f94aa authored by Jakob P's avatar Jakob P
Browse files

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

parent b9e4ad6f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment