* As intended, *skip* the HTTP proxy purges when doing HTCP purges
* Escape the output of magic variables that return page name or part of it
* (bug 10309) Initialise parser state properly in extractSections(), fixes
some cases where section edits broke because tags were improperly stripped
+* Avoid PHP notice errors when doing HTTP proxy purges for an empty list
+* As intended, *skip* the HTTP proxy purges when doing HTCP purges
== API changes since 1.10 ==
echo implode("<br />\n", $urlArr) . "<br />\n";
return;
}*/
+
+ if( empty( $urlArr ) ) {
+ return;
+ }
- if ( $wgHTCPMulticastAddress && $wgHTCPPort )
- SquidUpdate::HTCPPurge( $urlArr );
+ if ( $wgHTCPMulticastAddress && $wgHTCPPort ) {
+ return SquidUpdate::HTCPPurge( $urlArr );
+ }
$fname = 'SquidUpdate::purge';
wfProfileIn( $fname );