summaryrefslogtreecommitdiff
path: root/rh-bin
diff options
context:
space:
mode:
Diffstat (limited to 'rh-bin')
-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];