Ensure we are able to fetch the upstream share

* If a block was found but the upstream share is not inserted, bail out
* Next run should find the upstream share if it was added properly

Should address #189 but maybe not a fix yet.
This commit is contained in:
Sebastian Grewe 2013-06-14 10:14:13 +02:00
parent 905898700a
commit d3fa335e2c

View File

@ -82,9 +82,9 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
$iCurrentUpstreamId = $share->getUpstreamId();
$iAccountId = $user->getUserId($share->getUpstreamFinder());
} else {
verbose("Unable to fetch blocks upstream share\n");
verbose("Unable to fetch blocks upstream share. Aborting!\n");
verbose($share->getError() . "\n");
continue;
exit;
}
// Fetch share information
if (!$iPreviousShareId = $block->getLastShareId()) {