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 just noticed a log message at reports/recent log message:
Notice: Undefined index: HTTP_ACCEPT in is_mobile() (line 119 of C:\wamp\www\sites\all\modules\back_to_top\back_to_top.module).
Comment | File | Size | Author |
---|---|---|---|
screenshot.png | 19.07 KB | DrupalDan |
Comments
Comment #1
acke CreditAttribution: acke commentedThis is fixed in HEAD and going into next release (7.x-1.3)
http://drupal.org/node/1632408
Comment #2
DrupalDan CreditAttribution: DrupalDan commentedHi acke, thanks for your response. I read the issue you posted. Can you tell me where to make the change regarding the following:
if (preg_match("/wap\.|\.wap/i", (isset($_SERVER["HTTP_ACCEPT"]))))
Many thanks!
Comment #3
acke CreditAttribution: acke commentedYeah! It's line 119 in back_to_top.module.
Comment #4
DrupalDan CreditAttribution: DrupalDan commentedHi acke, I just replaced what's in the line of 119 with the code posted and I just went to check the log meesages. And so far I have't seen that log reported there again so I guess the issue has been fixed.
Thank you for your help! Look forward to trying 7.x-1.3.