Commit 59345ec5 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Bug #1100066: Fix dwoo function for str



This patch allows the dwoo function str to allow falsey arguments,
such as 0, false, etc etc

Change-Id: Ic7a6733288bc662b84e9535cd3c7d0b52d090681
Signed-off-by: default avatarHugh Davenport <hugh@davenport.net.nz>
parent b95816a0
......@@ -23,7 +23,7 @@ function Dwoo_Plugin_str(Dwoo $dwoo, $tag, $section = 'mahara', $args = null, $a
$params = array_merge($params, $args);
} else if (isset($arg1)) {
foreach (array('arg1', 'arg2', 'arg3') as $k) {
if ($$k) {
if (isset($$k)) {
$params[] = $$k;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment