summaryrefslogtreecommitdiff
path: root/listdropboxes.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'listdropboxes.cgi')
-rwxr-xr-xlistdropboxes.cgi19
1 files changed, 12 insertions, 7 deletions
diff --git a/listdropboxes.cgi b/listdropboxes.cgi
index 18c5902..9261e20 100755
--- a/listdropboxes.cgi
+++ b/listdropboxes.cgi
@@ -23,6 +23,11 @@ if(defined $dbh) {
if($result == 1) {
$responsecode = 200;
@dropboxes = rddb::get_dropboxes($dbh, $username);
+ unless (defined $dropboxes[0]) {
+ $responsecode = 500;
+ $status = $dropboxes[1];
+ $errorstring = $dropboxes[2];
+ }
} elsif($result == 0) {
$responsecode = 403;
} else {
@@ -46,18 +51,18 @@ if($responsecode != 200) {
print " <group-description>" . $href->{'GROUPDESC'} . "</group-description>\n";
print " <group-low-cart>" . $href->{'GROUPLOWCART'} . "</group-low-cart>\n";
print " <group-high-cart>" . $href->{'GROUPHIGHCART'} . "</group-high-cart>\n";
- print " <type>" . $href->{'TYPE'} . "</type>\n";
- print " <showid>" . $href->{'SHOWID'} . "</showid>\n";
- print " <log>" . $href->{'LOG'} . "</log>\n";
print " <normalization-level>" . $href->{'NORMLEVEL'} . "</normalization-level>\n";
print " <autotrim-level>" . $href->{'TRIMLEVEL'} . "</autotrim-level>\n";
print " <parameters>" . $href->{'PARAM'} . "</parameters>\n";
+ print " <type>" . $href->{'TYPE'} . "</type>\n";
if($href->{'TYPE'} eq "show") {
+ print " <show-id>" . $href->{'SHOWID'} . "</show-id>\n";
print " <show-title>" . $href->{'SHOWTITLE'} . "</show-title>\n";
- print " <show-rhythm>" . $href->{'RHYTHM'} . "</show-rhythm>\n";
- print " <show-dayofweek>" . $href->{'DOW'} . "</show-dayofweek>\n";
- print " <show-starttime>" . $href->{'STARTTIME'} . "</show-starttime>\n";
- print " <show-length>" . $href->{'LENGTH'} . "</show-length>\n";
+ print " <show-log>" . $href->{'SHOWLOG'} . "</show-log>\n";
+ print " <show-rhythm>" . $href->{'SHOWRHYTHM'} . "</show-rhythm>\n";
+ print " <show-dayofweek>" . $href->{'SHOWDOW'} . "</show-dayofweek>\n";
+ print " <show-starttime>" . $href->{'SHOWSTARTTIME'} . "</show-starttime>\n";
+ print " <show-length>" . $href->{'SHOWLEN'} . "</show-length>\n";
}
print " </dropbox>\n";
}