Skip to content

Commit

Permalink
Merge pull request #15 from Open-Wide/lolautruche/fix_variables
Browse files Browse the repository at this point in the history
Fix usage of unknown variables
  • Loading branch information
lolautruche committed Jan 22, 2014
2 parents eb249d4 + 581e801 commit 778c965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/content/sqlicontentutils.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function getRemoteFile( $url, array $httpAuth = null, $debug = fal
$password = $ini->variable( 'ProxySettings', 'Password' );
if ( $userName )
{
curl_setopt( $ch, CURLOPT_PROXYUSERPWD, "$username:$password" );
curl_setopt( $ch, CURLOPT_PROXYUSERPWD, "$userName:$password" );
}
}

Expand Down
2 changes: 1 addition & 1 deletion classes/sqliimportfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function runImport( array $aImportItems )
if( $this->importINI->hasVariable( $handlerSection, 'DefaultParentNodeID' ) )
{
$localParentNodeID = $this->importINI->variable( $handlerSection, 'DefaultParentNodeID' );
$defaultParentNodeID = is_int( $localParentNodeID ) ? (int)$localParentNode : $defaultParentNodeID;
$defaultParentNodeID = is_int( $localParentNodeID ) ? (int)$localParentNodeID : $defaultParentNodeID;
}

if( $this->importINI->hasVariable( $handlerSection, 'StreamTimeout' ) )
Expand Down
4 changes: 2 additions & 2 deletions classes/sqliimportitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ public function fromArray( array $attributes )
foreach( $attributes as $attrName => $attrValue )
{
if( isset( $this->attributesHolder[$attrName] ) )
$this->attributesHolder[$name] = $value;
$this->attributesHolder[$attrName] = $attrValue;
else
throw new SQLIImportRuntimeException( SQLIImportUtils::translate( 'extension/sqliimport/error',
'SQLIPendingImport : Unknown attribute "%attribute"',
null,
$name ) );
$attrName ) );
}
}

Expand Down

0 comments on commit 778c965

Please sign in to comment.