From c96c50382cf16430788c1b2cbabc30b586d3b72a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 27 Sep 2015 05:13:28 +0200 Subject: fixed handling of empty dropbox list 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]; -- cgit v0.10.2