aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-04 20:53:59 -0800
committerfriendica <info@friendica.com>2012-11-04 20:53:59 -0800
commit152641bf243dde9cf01d9a95038939ac9ddf0f3e (patch)
tree8ac950c4cb23d963691c8fa946fd6fed19eb8d9e /include/template_processor.php
parent94f737b69912a32b5ae693f5aab3da0df7956926 (diff)
downloadvolse-hubzilla-152641bf243dde9cf01d9a95038939ac9ddf0f3e.tar.gz
volse-hubzilla-152641bf243dde9cf01d9a95038939ac9ddf0f3e.tar.bz2
volse-hubzilla-152641bf243dde9cf01d9a95038939ac9ddf0f3e.zip
that was certainly some fun debugging (not)
Diffstat (limited to 'include/template_processor.php')
-rw-r--r--include/template_processor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/template_processor.php b/include/template_processor.php
index 0f52d12a4..89f03dfe0 100644
--- a/include/template_processor.php
+++ b/include/template_processor.php
@@ -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] : ""));
}
/**