wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
+ if ( !count( $ops ) ) {
+ return $status; // nothing to do
+ }
+
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );
wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
+ if ( !count( $ops ) ) {
+ return $status; // nothing to do
+ }
+
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );