make sure that in the case where there's no uncancelled active packages, the filter...
[freeside.git] / FS / FS / ClientAPI / MasonComponent.pm
index e98e8dc..76d406c 100644 (file)
@@ -67,7 +67,7 @@ my %session_callbacks = (
                      map  { $_->part_pkg }
                           $cust_main->ncancelled_pkgs;
 
-      unless ( $classnum{''} ) {
+      unless ( $classnum{''} || ! keys %classnum ) {
         @part_pkg = grep $classnum{ $_->classnum }, @part_pkg;
       }
     }