From abaf752a9bd79a2856bd6acbf16cb62a7f770018 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 8 Sep 2016 16:54:22 -0700 Subject: comanche: simple test issue --- Zotlabs/Render/Comanche.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs/Render') diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index fdb72c9fb..562a9f791 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -124,7 +124,6 @@ class Comanche { } function test_condition($s) { - // This is extensible. The first version of variable testing supports tests of the forms: // [if $config.system.foo == baz] which will check if get_config('system','foo') is the string 'baz'; // [if $config.system.foo != baz] which will check if get_config('system','foo') is not the string 'baz'; @@ -161,7 +160,7 @@ class Comanche { return false; } - if(preg_match('/[\$](.*?)/',$s,$matches)) { + if(preg_match('/[\$](.*?)$/',$s,$matches)) { $x = $this->get_condition_var($matches[1]); if($x) return true; -- cgit v1.2.3