that was certainly some fun debugging (not)

This commit is contained in:
friendica
2012-11-04 20:53:59 -08:00
parent 94f737b699
commit 152641bf24
9 changed files with 47 additions and 87 deletions

View File

@@ -71,7 +71,7 @@
$val = $this->_get_var($args[2]);
}
$x = preg_split("|{{ *else *}}|", $args[3]);
return ( $val ? $x[0] : (isset($x[1]) ? $x[1] : ""));
return ( ($val) ? $x[0] : (isset($x[1]) ? $x[1] : ""));
}
/**