I am seeing this notice when browsing to /filedepot as an anonymous user. PHP is expecting $show_alert in filedepot-mainpage.tpl.php. I noticed the following code in module line 1610:

1610   if (!user_is_logged_in()) {
1611     $variables['alert_message']       = 'You are not Logged in';
1612   }
1613   else {
1614     $variables['alert_message']       = '';
1615     $variables['show_alert']          = 'none';
1616   }

and have a patch attached in the comment below. The new code looks like this:

 1610   if (!user_is_logged_in()) {                                                                                                         
1611     $variables['alert_message']       = 'You are not Logged in';
1612     $variables['show_alert']          = 'none';
1613   }
1614   else {
1615     $variables['alert_message']       = '';
1616     $variables['show_alert']          = 'none';
1617   }

CommentFileSizeAuthor
#1 1695010.patch60 bytesvarunity

Comments

varunity’s picture

StatusFileSize
new60 bytes

Here's the patch.

_timpatrick’s picture

Awesome thank you! I have applied the patch to the 7.x-1.x branch

_timpatrick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Changing some text.

  • Commit 62a70a8 on 7.x-1.x, 8.x-1.x by _timpatrick:
    Issue #1695010 by _timpatrick - default variable for alert mesage when...