Added boolify to prevent if ($rs) blowing up on group_by'd resultsets
Matt S Trout [Fri, 20 Jan 2006 19:35:39 +0000 (19:35 +0000)]
lib/DBIx/Class/ResultSet.pm

index ff7d8e9..a6d884a 100644 (file)
@@ -4,6 +4,7 @@ use strict;
 use warnings;
 use overload
         '0+'     => 'count',
+        'bool'   => sub { 1; },
         fallback => 1;
 use Data::Page;
 use Storable;