summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/RHRD/rddb.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm
index 1172acd..1286a46 100755
--- a/lib/RHRD/rddb.pm
+++ b/lib/RHRD/rddb.pm
@@ -1492,6 +1492,24 @@ sub create_show_dropbox
return ($cnt, 'OK', 'success');
}
+sub update_show_dropbox
+{
+ my ($ctx, $show_id, $rhythm, $dow, $starttime, $len) = @_;
+ my $param = join(';', ('S', $rhythm, $dow, $starttime, $len));
+
+ my $sql = qq{update DROPBOXES set SET_USER_DEFINED = ? where TO_CART = ?};
+
+ my $sth = $ctx->{'dbh'}->prepare($sql)
+ or return (undef, 'ERROR', "Database Error: " . $ctx->{'dbh'}->errstr);
+
+ my $cnt = $sth->execute($param, $show_id)
+ or return (undef, 'ERROR', "Database Error: " . $sth->errstr);
+
+ $sth->finish();
+
+ return ($cnt, 'OK', 'success');
+}
+
sub remove_show
{
my ($ctx, $showid) = @_;