Commit d59412f7 authored by cslevy's avatar cslevy Committed by Anoop John
Browse files

Issue #3229622 by cslevy, draganj: Notice: Trying to get property 'data' of...

Issue #3229622 by cslevy, draganj: Notice: Trying to get property 'data' of non-object in disable_messages_apply_filters() (line 135 of modules/contrib/disable_messages/disable_messages.module)
parent 3d10056b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -130,7 +130,12 @@ function disable_messages_apply_filters(array $messages) {
  $user = \Drupal::currentUser();
  // Retrieve the debugging cache.
  $cache = \Drupal::cache()->get('disable_messages:cache_messages');
  if (!empty($cache->data)) {
    $cache = $cache->data;
  }
  else {
    $cache = [];
  }
  // @todo Store the path to debug. The debug div is delayed.
  $cache['url'] = Url::fromRoute('<current>')->toString();
  // Check userid level filtering.