diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-09-27 03:13:28 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-09-27 03:13:28 (GMT) |
commit | c96c50382cf16430788c1b2cbabc30b586d3b72a (patch) | |
tree | 0f6da004680e7f477180565ff586c0a3d7f7c2b5 /rh-bin | |
parent | 3810342679355ee88b8a4342e48c26c29db2bbb9 (diff) |
fixed handling of empty dropbox list
Diffstat (limited to 'rh-bin')
-rwxr-xr-x | rh-bin/listdropboxes.cgi | 2 |
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]; |