From 441f99c54b1b9588817c091a20578a822c8185a4 Mon Sep 17 00:00:00 2001 From: chriskl Date: Sat, 3 Sep 2005 04:59:59 +0000 Subject: [PATCH] tweak unary operator display to avoid extra spaces --- libraries/decorator.inc.php | 4 ++-- operators.php | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/libraries/decorator.inc.php b/libraries/decorator.inc.php index 27170135..aa4e5c36 100644 --- a/libraries/decorator.inc.php +++ b/libraries/decorator.inc.php @@ -1,5 +1,5 @@ c as $var) { $accum .= value($var, $fields); } - return $accum; + return trim($accum); } } diff --git a/operators.php b/operators.php index 5130a815..3b6379f4 100644 --- a/operators.php +++ b/operators.php @@ -3,7 +3,7 @@ /** * Manage operators in a database * - * $Id: operators.php,v 1.18 2005/05/02 15:47:24 chriskl Exp $ + * $Id: operators.php,v 1.19 2005/09/03 04:59:59 chriskl Exp $ */ // Include application functions @@ -167,9 +167,6 @@ // Operator prototype: "type operator type" $proto = concat(field('oprleftname'), ' ', field('oprname'), ' ', field('oprrightname')); - // Alternative prototype: "operator (type,type)" - #$proto = concat(field('oprname'), ' (', field('oprleftname','NONE'), ',', field('oprrightname','NONE'), ')'); - $reqvars = $misc->getRequestVars('operator'); $attrs = array( -- 2.39.5