Some more error fixing after noticing them in the logs
This commit is contained in:
@@ -12,8 +12,11 @@
|
||||
}
|
||||
|
||||
var mem = Members.GetCurrentMember();
|
||||
|
||||
var subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForum(CurrentPage.Id, mem.Id);
|
||||
var subscribed = false;
|
||||
if (mem != null)
|
||||
{
|
||||
subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForum(CurrentPage.Id, mem.Id);
|
||||
}
|
||||
|
||||
if (CurrentPage.Level == 4)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,11 @@
|
||||
if (Members.IsLoggedIn())
|
||||
{
|
||||
var mem = Members.GetCurrentMember();
|
||||
var subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForumTopic(topic.Id, mem.Id);
|
||||
var subscribed = false;
|
||||
if (mem != null)
|
||||
{
|
||||
subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForumTopic(topic.Id, mem.Id);
|
||||
}
|
||||
|
||||
if (Members.IsAdmin())
|
||||
{
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div id="events">
|
||||
<umbraco:Macro Alias="Events-ShowUpcoming" runat="server"></umbraco:Macro>
|
||||
</div>
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
|
||||
@@ -157,7 +157,7 @@ $recordsPerPage )">
|
||||
<xsl:when test="string-length($project/defaultScreenshotPath) > 0">
|
||||
<div style="float:left;padding-top:15px;width:75px;height:80px;">
|
||||
<div style="padding-left:16px;">
|
||||
<img style="width:40px;height:40px" src="/umbraco/imagegen.ashx?image={$project/defaultScreenshotPath}&pad=true&width=40&height=40;" alt="{$project/@nodeName}"/>
|
||||
<img style="width:40px;height:40px" src="{$project/defaultScreenshotPath}?width=40&height=40;" alt="{$project/@nodeName}"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:when>
|
||||
|
||||
Reference in New Issue
Block a user