From: Rob Kinyon Date: Mon, 26 Oct 2009 19:11:22 +0000 (+0000) Subject: Fixed bad if-check in columns() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9851dada033612ff82dd6a6a6d9da84478a30ed1;p=dbsrgits%2FDBIx-Class-Historic.git Fixed bad if-check in columns() --- diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index fa08fae..b3bb934 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -389,7 +389,7 @@ sub columns { my $self = shift; $self->throw_exception( "columns() is a read-only accessor, did you mean add_columns()?" - ) if (@_ > 1); + ) if @_; return @{$self->{_ordered_columns}||[]}; }