summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-09-27 03:13:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-09-27 03:13:28 (GMT)
commitc96c50382cf16430788c1b2cbabc30b586d3b72a (patch)
tree0f6da004680e7f477180565ff586c0a3d7f7c2b5
parent3810342679355ee88b8a4342e48c26c29db2bbb9 (diff)
fixed handling of empty dropbox list
-rwxr-xr-xrh-bin/listdropboxes.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi
index a9df374..0a65105 100755
--- a/rh-bin/listdropboxes.cgi
+++ b/rh-bin/listdropboxes.cgi
@@ -44,7 +44,7 @@ if(defined $dbh) {
if($result == 1) {
$responsecode = 200;
@dropboxes = RHRD::rddb::get_dropboxes($dbh, $username);
- unless (defined $dropboxes[0]) {
+ if(!defined $dropboxes[0] && defined $dropboxes[1]) {
$responsecode = 500;
$status = $dropboxes[1];
$errorstring = $dropboxes[2];