1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00

get rid of warning when $url["port"] isn't set

This commit is contained in:
Evan Klinger
2000-03-01 07:03:33 +00:00
parent 44a52bcd9b
commit ae552c39fd

View File

@@ -58,7 +58,8 @@
$message.=sprintf("Content-length: %d\r\n",$pairs_length);
$message.="\r\n";
$message.=$encrypted_pairs."\r\n";
$response=CCSocketSend($merchant_key,$url["host"],$url["port"],$message);
$response=CCSocketSend($merchant_key,$url["host"],isset($url["port"])?$url["port"]:"",$message);
return $response;
}