Allow no prefix here

This commit is contained in:
Aaron Schulz 2008-10-13 17:27:44 +00:00
parent e6878fdcb7
commit 20e9f00c82

View file

@ -218,7 +218,7 @@ class RecentChange
$address = $address ? $address : $wgRC2UDPAddress;
$prefix = $prefix ? $prefix : $wgRC2UDPPrefix;
# Notify external application via UDP
if( $address && $prefix ) {
if( $address ) {
$conn = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
if( $conn ) {
$line = $prefix . $line;