[geeklog-cvs] geeklog: Don't display "This poll has 0 more questions."
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Oct 11 14:51:42 EDT 2009
changeset 7374:0ba218a98a1a
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0ba218a98a1a
user: Dirk Haun <dirk at haun-online.de>
date: Sun Oct 11 20:51:25 2009 +0200
description:
Don't display "This poll has 0 more questions."
diffstat:
plugins/polls/functions.inc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r b04a760c72ea -r 0ba218a98a1a plugins/polls/functions.inc
--- a/plugins/polls/functions.inc Sun Oct 11 20:45:41 2009 +0200
+++ b/plugins/polls/functions.inc Sun Oct 11 20:51:25 2009 +0200
@@ -549,7 +549,10 @@
$filter = '';
if (!$showall) {
$nquestions--;
- $notification = $LANG25[35] . " $nquestions " . $LANG25[36];
+ if ($nquestions > 0) {
+ $notification = $LANG25[35] . " $nquestions "
+ . $LANG25[36];
+ }
$filter = "AND qid='0'";
$nquestions = 1;
} else {
More information about the geeklog-cvs
mailing list