Changeset 311

Show
Ignore:
Timestamp:
05/25/06 16:42:04 (6 years ago)
Author:
nick
Message:

Do the array/string stuff properly on node_all_versions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/Database.pm

    r307 r311  
    15061506 
    15071507                        if($m_type) { 
     1508                                # If we have existing data, then put it into an array 
    15081509                                if($data{'metadata'}->{$m_type}) { 
     1510                                        unless(ref($data{'metadata'}->{$m_type}) eq "ARRAY") { 
     1511                                                $data{'metadata'}->{$m_type} = [ $data{'metadata'}->{$m_type} ]; 
     1512                                        } 
    15091513                                        push @{$data{'metadata'}->{$m_type}}, $m_value; 
    15101514                                } else { 
     1515                                        # Otherwise, just store it in a normal string 
    15111516                                        $data{'metadata'}->{$m_type} = $m_value; 
    15121517                                }