From a850033b92ccec4c5c13145ecacc4047850e80fe Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 18 Apr 2004 15:42:00 +0000 Subject: [PATCH] fixed [ 935552 ] USS bug (w/ and w/o img mixed posts). --- docs/changelog/5.x.x.txt | 4 ++++ lib/WebGUI/Wobject/USS.pm | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index cf8c91044..5337faa8c 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -1,3 +1,7 @@ +5.5.7 + - bugfix [ 935552 ] USS bug (w/ and w/o img mixed posts). + + 5.5.6 - bugfix [ 895067 ] Forum ID Missing In USS - bugfix [ 909688 ] USS forum post edit function not work diff --git a/lib/WebGUI/Wobject/USS.pm b/lib/WebGUI/Wobject/USS.pm index 51e19e441..cb11ed5e2 100644 --- a/lib/WebGUI/Wobject/USS.pm +++ b/lib/WebGUI/Wobject/USS.pm @@ -677,7 +677,7 @@ sub www_view { where USS_id=".$_[0]->get("USS_Id")." and $constraints order by ".$_[0]->getValue("sortBy")." ".$_[0]->getValue("sortOrder")); $page = $p->getPageData; $i = 0; - my $imageURL; + my $imageURL = ""; foreach $row (@$page) { $page->[$i]->{content} = WebGUI::HTML::filter($page->[$i]->{content},$_[0]->get("filterContent")); $page->[$i]->{content} =~ s/\n/\^\-\;/ unless ($page->[$i]->{content} =~ m/\^\-\;/); @@ -689,7 +689,7 @@ sub www_view { $imageURL = $image->getURL; } else { $thumbnail = ""; - $imageURL; + $imageURL = ""; } ($responses) = WebGUI::SQL->quickArray("select count(*) from forumPost left join forumThread on forumThread.forumThreadId=forumPost.forumThreadId where forumThread.forumId=".$row->{forumId});