Fix rss/bug.php?format=xml Although, `MDB2_FETCHMODE_ASSOC` is supposed to return an associative array (mapping column names to their values)[1], for some reason it actually seems to
Fix rss/bug.php?format=xml Although, `MDB2_FETCHMODE_ASSOC` is supposed to return an associative array (mapping column names to their values)[1], for some reason it actually seems to behave like some non-existing `MDB2_FETCHMODE_BOTH`. This breaks the generated XML by additionally creating invalid element names. Since we are not sure whether other callers of bugs_get_bug() and bugs_get_bug_comments() rely on this behavior, we're working around the issue by skipping the integer keys. [1] <http://pear.php.net/manual/en/package.database.mdb2.intro-fetch.php#package.database.mdb2.intro-fetch.desc.format>
show more ...
|