Superpage cannot be unset in QP core
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 9 Sep 2012 16:02:45 +0000 (12:02 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 9 Sep 2012 19:16:21 +0000 (15:16 -0400)
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm

index f5e8673..ed90384 100644 (file)
@@ -1149,7 +1149,7 @@ Return and/or set the superpage.
 sub superpage {
     my $self = shift;
     my $l = shift;
-    $self->{superpage} = $l if ($l);
+    $self->{superpage} = $l if (defined($l));
     return $self->{superpage};
 }