Followup on r48713: fix a very stupid typo
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 23 Mar 2009 20:06:16 +0000 (20:06 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 23 Mar 2009 20:06:16 +0000 (20:06 +0000)
includes/api/ApiFormatWddx.php

index ac9a53c..35bd7f4 100644 (file)
@@ -48,7 +48,7 @@ class ApiFormatWddx extends ApiFormatBase {
                $expected = "<wddxPacket version='1.0'><header/><data><string>\xc2\xa0</string></data></wddxPacket>";
                if (function_exists('wddx_serialize_value')
                                && !$this->getIsHtml()
-                               && wddx_serialize_value("\xc2\xa0") != $expected) {
+                               && wddx_serialize_value("\xc2\xa0") == $expected) {
                        $this->printText(wddx_serialize_value($this->getResultData()));
                } else {
                        // Don't do newlines and indentation if we weren't asked