summaryrefslogtreecommitdiff
path: root/lib/RHRD/rddb.pm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-14 20:05:48 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-14 20:05:48 (GMT)
commit308a989ca62ba7d97fa7a60a8940d9d2b6dbb7b7 (patch)
tree99a547c57e955dbc0540a6980bf26614e54a29bb /lib/RHRD/rddb.pm
parent043bcc2f9a395458c18f369f06ac876d26a9b814 (diff)
harmonized input output values for mulit-show lib functions
Diffstat (limited to 'lib/RHRD/rddb.pm')
-rwxr-xr-xlib/RHRD/rddb.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm
index d4ff7a5..5e0afbc 100755
--- a/lib/RHRD/rddb.pm
+++ b/lib/RHRD/rddb.pm
@@ -2036,7 +2036,9 @@ sub create_multi_show
{
my $ctx = shift;
my $title = shift;
- my $shows = join(";", @_);
+ my %shows = %{shift()};
+
+ my $showstr = join(";", map { "$_:$shows{$_}" } sort keys %shows);
my ($number, $status, $errorstring) = get_next_free_multi_showid($ctx);
unless (defined $number) {
@@ -2048,7 +2050,7 @@ sub create_multi_show
my $sth = $ctx->{'dbh'}->prepare($sql)
or return (undef, 'ERROR', "Database Error: " . $ctx->{'dbh'}->errstr);
- $sth->execute($number, $ctx->{'config'}{'specialgroups'}{'multishows'}, $title, $shows)
+ $sth->execute($number, $ctx->{'config'}{'specialgroups'}{'multishows'}, $title, $showstr)
or return (undef, 'ERROR', "Database Error: " . $sth->errstr);
$sth->finish();