From f2214522d809ca8f8a3bb08babdb06df3f5fa951 Mon Sep 17 00:00:00 2001 From: julmis Date: Mon, 6 Mar 2006 07:12:04 +0000 Subject: [PATCH] Fixing comma problem. --- lib/editor/tinymce/tinymce.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/editor/tinymce/tinymce.class.php b/lib/editor/tinymce/tinymce.class.php index cdbec765daa..1f91b6bc415 100644 --- a/lib/editor/tinymce/tinymce.class.php +++ b/lib/editor/tinymce/tinymce.class.php @@ -256,6 +256,10 @@ class tinymce extends editorObject { continue; } + if ( $cnt > 1 ) { + echo ',' ."\n"; + } + echo "\t" . $key .' : '; if ( is_bool($value) ) { @@ -264,10 +268,6 @@ class tinymce extends editorObject { echo '"'. $value .'"'; } - if ( $cnt < $max ) { - echo ','; - } - echo "\n"; $cnt++; } }