[PATCH] Fix WS and a Notice in XML_Beautifier

From: Date: Fri, 21 Nov 2003 05:13:23 +0000
Subject: [PATCH] Fix WS and a Notice in XML_Beautifier
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23779@lists.php.net to get a copy of this message
Hey, Another patch from me[1]. Its two diffs in one file, the first (and much larger) is a whitespace ONLY patch. The second removes a E_NOTICE thrown when no children exist when dealing with CDATA or EMPTY elements. It comes to mind that because they are CDATA or EMPTY elements they will NEVER have a child element and so my code could be changed like this: From:
                        if (sizeof($struct["children"]) >= 1) {
                            $data = $struct["children"][0]["data"];
                        } else {
                            $data = '';
                        }
To:
                        $data = '';
Anyways, the fix is at the bottom of the patch, so scroll down :) - Davey [1] http://davey.is-a-geek.com/php-cvs/diffs/PEAR/XML_Beautifier.txt

« previous php.pear.dev (#23779) next »