Remove useless elseif compare. If the else if is doing the inverse (!) of the origina...
authorSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 10:34:01 +0000 (10:34 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 10:34:01 +0000 (10:34 +0000)
includes/libs/spyc.php

index bc92e86..cc6993c 100644 (file)
@@ -125,7 +125,7 @@ class Spyc {
                        $indent += $this->_dumpIndent;
                        // Yamlize the array
                        $string .= $this->_yamlizeArray( $value, $indent );
-               } elseif ( !is_array( $value ) ) {
+               } else {
                        // It doesn't have children.  Yip.
                        $string = $this->_dumpNode( $key, $value, $indent );
                }