Author: dom Date: 2005-11-15 17:11:48 +0000 (Tue, 15 Nov 2005) New Revision: 707
Modified: trunk/Changes trunk/lib/OpenGuides.pm Log: RT #15824 Can't call method "type" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.5/Text/WikiFormat.pm
Modified: trunk/Changes =================================================================== --- trunk/Changes 2005-11-15 13:27:28 UTC (rev 706) +++ trunk/Changes 2005-11-15 17:11:48 UTC (rev 707) @@ -36,6 +36,9 @@ * "Redirected from" message now links to a rendered version of the old page rather than the editing view.
+ Miscellaneous bugfixes: + * Fix problem with newer Text::Wikiformat and blank nodes. + 0.50 2 October 2005 Remove rogue ampersand that had crept into the RSS feed.
Modified: trunk/lib/OpenGuides.pm =================================================================== --- trunk/lib/OpenGuides.pm 2005-11-15 13:27:28 UTC (rev 706) +++ trunk/lib/OpenGuides.pm 2005-11-15 17:11:48 UTC (rev 707) @@ -165,7 +165,8 @@
my %node_data = $wiki->retrieve_node( %criteria );
- my $raw = $node_data{content}; + # Fixes passing undefined values to Text::Wikiformat if node doesn't exist. + my $raw = $node_data{content} || " "; my $content = $wiki->format($raw); my $modified = $node_data{last_modified}; my %metadata = %{$node_data{metadata}};