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).

CommentFileSizeAuthor
screenshot.png19.07 KBDrupalDan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

acke’s picture

Status: Active » Closed (duplicate)

This is fixed in HEAD and going into next release (7.x-1.3)

http://drupal.org/node/1632408

DrupalDan’s picture

Hi 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!

acke’s picture

Yeah! It's line 119 in back_to_top.module.

DrupalDan’s picture

Hi 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.