Skip to content

Commit

Permalink
[xupdate] for 'parallel_fetch_max' is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 23, 2013
1 parent bf4e72d commit 834a316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xupdate/class/Func.class.php
Expand Up @@ -77,7 +77,7 @@ function _multiDownloadFile( &$multiData, $cacheTTL )
$this->appendMes('downloaded in: '.$downloadDirPath);
$this->content.= 'downloaded in: '.$downloadDirPath.'<br />';

$max = (isset($this->mod_config['parallel_fetch_max']))? intval($this->mod_config['parallel_fetch_max']) : 50;
$max = (!empty($this->mod_config['parallel_fetch_max']))? intval($this->mod_config['parallel_fetch_max']) : 50;
$start = 0;
$count = count($multiData);
while($fetchs = array_slice($multiData, $start, $max, true)) {
Expand Down

0 comments on commit 834a316

Please sign in to comment.