From: Matt S Trout Date: Fri, 20 Jan 2006 19:35:39 +0000 (+0000) Subject: Added boolify to prevent if ($rs) blowing up on group_by'd resultsets X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a910dc57df5baeac65a157a9180754754234c421;p=dbsrgits%2FDBIx-Class-Historic.git Added boolify to prevent if ($rs) blowing up on group_by'd resultsets --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index ff7d8e9..a6d884a 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -4,6 +4,7 @@ use strict; use warnings; use overload '0+' => 'count', + 'bool' => sub { 1; }, fallback => 1; use Data::Page; use Storable;