#212: Uninitialized variable warning in t/70_admin_home -----------------------------------------+---------------------------------- Reporter: dom | Owner: andrewb Type: defect | Status: assigned Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: hackfestsummer2007-reviewed | -----------------------------------------+---------------------------------- Comment (by andrewb):
{{{ 47: # Test the tt vars 48: my %ttvars = eval { 49: $guide->display_admin_interface( return_tt_vars=> 1 ); 50 };
sub display_admin_interface { ...... $node->{'revert_user_url'} = $script_name . "?action=revert_user" . ";username=".$node->{metadata}->{username}->[0];
}}} $node->{metadata}->{username} is not defined
{{{ 0 HASH(0x94cffe4) 'last_modified' => '2007-06-10 15:45:36' 'metadata' => HASH(0x949b0a4) 'category' => ARRAY(0x94cf1c8) 0 'Locales' 'moderate' => 0 'moderation_url' => 'wiki.cgi?action=set_moderation;id=Locale_Bar' 'name' => 'Locale Bar' 'version' => 2 'versions_url' => 'wiki.cgi?action=list_all_versions;id=Locale_Bar' 'view_url' => 'wiki.cgi?id=Locale_Bar' }}}