Skip to content

Commit 922c43c

Browse files
committed
Fix undeclared variables (found by https://github.com/facebook/hiphop-php analyzer)
1 parent e79be33 commit 922c43c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S3.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ public static function setBucketLogging($bucket, $targetBucket, $targetPrefix =
728728
$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
729729
if ($rest->error !== false)
730730
{
731-
self::__triggerError(sprintf("S3::setBucketLogging({$bucket}, {$uri}): [%s] %s",
731+
self::__triggerError(sprintf("S3::setBucketLogging({$bucket}, {$targetBucket}): [%s] %s",
732732
$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
733733
return false;
734734
}
@@ -1773,7 +1773,7 @@ public function getResponse()
17731773
{
17741774
curl_setopt($curl, CURLOPT_PROXY, S3::$proxy['host']);
17751775
curl_setopt($curl, CURLOPT_PROXYTYPE, S3::$proxy['type']);
1776-
if (isset(S3::$proxy['user'], S3::$proxy['pass']) && $proxy['user'] != null && $proxy['pass'] != null)
1776+
if (isset(S3::$proxy['user'], S3::$proxy['pass']) && S3::$proxy['user'] != null && S3::$proxy['pass'] != null)
17771777
curl_setopt($curl, CURLOPT_PROXYUSERPWD, sprintf('%s:%s', S3::$proxy['user'], S3::$proxy['pass']));
17781778
}
17791779

0 commit comments

Comments
 (0)