Bug 3452: Additional patch that expands the branch name and category code in Suggesti...
[koha_fer] / opac / opac-authorities-home.pl
index b1674f1..f06965d 100755 (executable)
@@ -83,6 +83,7 @@ if ( $op eq "do_search" ) {
     # multi page display gestion
     my $displaynext = 0;
     my $displayprev = $startfrom;
+    $total ||= 0;
     if ( ( $total - ( ( $startfrom + 1 ) * ($resultsperpage) ) ) > 0 ) {
         $displaynext = 1;
     }