... | ... |
@@ -37,7 +37,7 @@ $tables{polls} = $cfg::config{prefix} . "poll"; |
37 | 37 |
$tables{votes} = $cfg::config{prefix} . "vote"; |
38 | 38 |
$tables{slots} = $cfg::config{prefix} . "slot"; |
39 | 39 |
|
40 |
-$request = "select id as poll_id, admin_name as category, admin_id, title, recurrent, restricted from $tables{polls}"; |
|
40 |
+$request = "select id as poll_id, admin_name as category, admin_id, title, recurrent, restricted, description from $tables{polls}"; |
|
41 | 41 |
$sth = $dbh->prepare($request); |
42 | 42 |
$polls = $dbh->selectall_hashref($sth, [ qw(category poll_id) ]); |
43 | 43 |
|
... | ... |
@@ -147,6 +147,7 @@ foreach my $dest (keys(%{$cfg::config{notification}->{to}})) { |
147 | 147 |
} |
148 | 148 |
else { |
149 | 149 |
$data .= "<a href=$cfg::config{url}/studs.php?poll=$poll_id>$title</a><br>"; |
150 |
+ $data .= $polls->{$category}->{$poll_id}->{description} . "<br><br>"; |
|
150 | 151 |
} |
151 | 152 |
} |
152 | 153 |
} |