Index: trunk/phase3/includes/SquidUpdate.php |
— | — | @@ -81,9 +81,14 @@ |
82 | 82 | echo implode("<br />\n", $urlArr) . "<br />\n"; |
83 | 83 | return; |
84 | 84 | }*/ |
| 85 | + |
| 86 | + if( empty( $urlArr ) ) { |
| 87 | + return; |
| 88 | + } |
85 | 89 | |
86 | | - if ( $wgHTCPMulticastAddress && $wgHTCPPort ) |
87 | | - SquidUpdate::HTCPPurge( $urlArr ); |
| 90 | + if ( $wgHTCPMulticastAddress && $wgHTCPPort ) { |
| 91 | + return SquidUpdate::HTCPPurge( $urlArr ); |
| 92 | + } |
88 | 93 | |
89 | 94 | $fname = 'SquidUpdate::purge'; |
90 | 95 | wfProfileIn( $fname ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -179,6 +179,8 @@ |
180 | 180 | * Escape the output of magic variables that return page name or part of it |
181 | 181 | * (bug 10309) Initialise parser state properly in extractSections(), fixes |
182 | 182 | some cases where section edits broke because tags were improperly stripped |
| 183 | +* Avoid PHP notice errors when doing HTTP proxy purges for an empty list |
| 184 | +* As intended, *skip* the HTTP proxy purges when doing HTCP purges |
183 | 185 | |
184 | 186 | |
185 | 187 | == API changes since 1.10 == |