Fix the fix: "? :" -> "?:"
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 14 Nov 2013 18:40:13 +0000 (19:40 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 14 Nov 2013 18:40:13 +0000 (19:40 +0100)
Change-Id: Icdbb200faf2ee5c7c6a0095987f76a2bc1b4e5e7

includes/api/ApiMain.php

index 61577cb..c301e9e 100644 (file)
@@ -951,7 +951,7 @@ class ApiMain extends ApiBase {
                        // Printer has not yet executed; don't warn that its parameters are unused
                        $printerParams = array_map(
                                array( $this->mPrinter, 'encodeParamName' ),
-                               array_keys( $this->mPrinter->getFinalParams() ? : array() )
+                               array_keys( $this->mPrinter->getFinalParams() ?: array() )
                        );
                        $unusedParams = array_diff( $allParams, $paramsUsed, $printerParams );
                } else {