Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix: Avoid an incorrect and too early bail out
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Jan 26, 2018
1 parent 2c34a60 commit 71b0a51
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/Restore/src/Restore/Model/RestoreModel.php
Expand Up @@ -56,11 +56,7 @@ public function getDirectories(&$bsock=null, $jobid=null, $pathid=null) {
$result = $bsock->send_command($cmd_1, 2, $jobid);
$directories = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);

if ( empty($directories['result']) ) {
return $retval;
}

if(empty($directories['result']['directories'])) {
if(empty($directories['result'])) {
$cmd_2 = '.bvfs_lsdirs jobid='.$jobid.' path=@ limit='.$limit;
$result = $bsock->send_command($cmd_2, 2, $jobid);
$directories = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
Expand Down

0 comments on commit 71b0a51

Please sign in to comment.