Skip to content

Commit

Permalink
Fixing a PHP warning (issue mustangostang#9).
Browse files Browse the repository at this point in the history
git-svn-id: https://spyc.googlecode.com/svn/trunk@82 705174c8-340b-11de-9d05-31133e6853b1
  • Loading branch information
vlad.andersen committed Sep 20, 2009
1 parent 93f8707 commit a27c37e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyc.php
Expand Up @@ -300,9 +300,9 @@ private function _yamlizeArray($array,$indent) {
*/
private function _dumpNode($key, $value, $indent, $previous_key = -1, $first_key = 0) {
// do some folding here, for blocks
if (is_string ($value) && (strpos($value,"\n") !== false || strpos($value,": ") !== false || strpos($value,"- ") !== false ||
if (is_string ($value) && ((strpos($value,"\n") !== false || strpos($value,": ") !== false || strpos($value,"- ") !== false ||
strpos($value,"*") !== false || strpos($value,"#") !== false || strpos($value,"<") !== false || strpos($value,">") !== false ||
strpos($value,"[") !== false || strpos($value,"]") !== false || strpos($value,"{") !== false || strpos($value,"}") !== false) || substr ($value, -1, 1) == ':') {
strpos($value,"[") !== false || strpos($value,"]") !== false || strpos($value,"{") !== false || strpos($value,"}") !== false) || substr ($value, -1, 1) == ':')) {
$value = $this->_doLiteralBlock($value,$indent);
} else {
$value = $this->_doFolding($value,$indent);
Expand Down

0 comments on commit a27c37e

Please sign in to comment.