Skip to content

Commit

Permalink
Fix usage of unknown variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mveyrenc committed Jan 22, 2014
1 parent eb249d4 commit 581e801
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
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
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
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 581e801

Please sign in to comment.