| 
      
            Lines 165-170
          sub save {
      
      
        Link Here
      
     | 
  
        
          | 165 | 
              }  | 
          165 | 
              }  | 
        
        
          | 166 | 
              else {                      # otherwise create a new record | 
          166 | 
              else {                      # otherwise create a new record | 
        
        
          | 167 | 
                  my @params;  | 
          167 | 
                  my @params;  | 
        
            
               | 
               | 
              168 | 
                      delete $self->{layout_id}; # Could be an empty string | 
            
        
          | 168 | 
                  my $query = "INSERT INTO creator_layouts ("; | 
          169 | 
                  my $query = "INSERT INTO creator_layouts ("; | 
        
        
          | 169 | 
                  foreach my $key (keys %{$self}) { | 
          170 | 
                  foreach my $key (keys %{$self}) { | 
        
        
          | 170 | 
                      push (@params, $self->{$key}); | 
          171 | 
                      push (@params, $self->{$key}); | 
        
            
              | 171 | 
              -   | 
               | 
               |