Don't display "This poll has 0 more questions." HEAD
authorDirk Haun <dirk@haun-online.de>
Sun Oct 11 20:51:25 2009 +0200 (2009-10-11)
branchHEAD
changeset 73740ba218a98a1a
parent 7373 b04a760c72ea
child 7375 62255fe7e5f9
Don't display "This poll has 0 more questions."
plugins/polls/functions.inc
     1.1 --- a/plugins/polls/functions.inc	Sun Oct 11 20:45:41 2009 +0200
     1.2 +++ b/plugins/polls/functions.inc	Sun Oct 11 20:51:25 2009 +0200
     1.3 @@ -549,7 +549,10 @@
     1.4                      $filter = '';
     1.5                      if (!$showall) {
     1.6                          $nquestions--;
     1.7 -                        $notification = $LANG25[35] . " $nquestions " . $LANG25[36];
     1.8 +                        if ($nquestions > 0) {
     1.9 +                            $notification = $LANG25[35] . " $nquestions "
    1.10 +                                          . $LANG25[36];
    1.11 +                        }
    1.12                          $filter = "AND qid='0'";
    1.13                          $nquestions = 1;
    1.14                      } else {