Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In some cases the cache object is empty and it gives a warning.
So we need to do a !empty check.
I attached a patch for fix.
Comment | File | Size | Author |
---|---|---|---|
fix_undefined_warning.patch | 656 bytes | cslevy |
Comments
Comment #2
Dragan Jancikin CreditAttribution: Dragan Jancikin as a volunteer commentedThis patch work for me.
Project version is: 2.1-alpha1
Drupal: 8.9.20
Comment #4
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedThanks for reporting the issue and for submitting the patch. I have committed the patch to the 2.x branch.
Comment #5
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commented