From 9e52da6701127b55eb7fce383daf880012aa6576 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 19 Mar 2005 05:09:59 +0000 Subject: [PATCH] By golly I think we have it! --- template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template.php b/template.php index 2f47480..0cb00e6 100644 --- a/template.php +++ b/template.php @@ -463,7 +463,7 @@ class DB_Template // save all the data for later so we can do a quick replacement $parsed["$depth"]["$last"] = array( 'raw' => $fullspread, - 'parsed' => '" . iff(' . stripslashes($expression) . ',"' . $conditional . '","") . "', + 'parsed' => '" . ((' . stripslashes($expression) . ') ? ("' . $conditional . '")) . "', /*'start' => $last, 'end' => $end, 'length' => array( @@ -506,6 +506,7 @@ class DB_Template //$template = str_replace($conditional['unique'], $conditional['parsed'], $template); } } + $template = str_replace('', ') : ("', $template); return $template; -- 2.43.5