Changeset 707


Ignore:
Timestamp:
Nov 15, 2005, 5:11:48 PM (16 years ago)
Author:
Dominic Hargreaves
Message:

RT #15824 Can't call method "type" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.5/Text/WikiFormat.pm

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r706 r707  
    3636          * "Redirected from" message now links to a rendered version of the old page
    3737            rather than the editing view.
     38       
     39        Miscellaneous bugfixes:
     40          * Fix problem with newer Text::Wikiformat and blank nodes.
    3841       
    39420.50    2 October 2005
  • trunk/lib/OpenGuides.pm

    r706 r707  
    166166    my %node_data = $wiki->retrieve_node( %criteria );
    167167
    168     my $raw        = $node_data{content};
     168    # Fixes passing undefined values to Text::Wikiformat if node doesn't exist.
     169    my $raw        = $node_data{content} || " ";
    169170    my $content    = $wiki->format($raw);
    170171    my $modified   = $node_data{last_modified};
Note: See TracChangeset for help on using the changeset viewer.