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.
I get this notice when searching for something that does not have any search results:
Notice: Undefined index: pager_total_items in include() (line 29 of /sites/all/themes/simpleclean/search-results.tpl.php).
Adding a patch to remove the notice.
Comment | File | Size | Author |
---|---|---|---|
simpleclean-undefined-index-when-no-search-results.patch | 558 bytes | Kleve |
Comments
Comment #1
acke CreditAttribution: acke commentedI couldn't reproduce this but the code looks good and I see how the notice can appear under certain circumstances. It's commited and pushed to head and going into next release. Thanks for the help Kleve !