--- parser3/src/classes/hash.C 2009/05/04 09:26:19 1.90 +++ parser3/src/classes/hash.C 2009/05/05 10:06:57 1.91 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HASH_C="$Date: 2009/05/04 09:26:19 $"; +static const char * const IDENT_HASH_C="$Date: 2009/05/05 10:06:57 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -440,12 +440,12 @@ static bool one_foreach_cycle( if(info->value_var_name) var_context.put_element(var_context, *info->value_var_name, avalue, false); - if(info->delim_maybe_code){ + if(info->delim_maybe_code){ // delimiter set StringOrValue sv_processed=info->r->process(*info->body_code); Request::Skip lskip=info->r->get_skip(); info->r->set_skip(Request::SKIP_NOTHING); const String* s_processed=sv_processed.get_string(); - if(s_processed && s_processed->length()) { // delimiter set and we have body + if(s_processed && !s_processed->is_empty()) { // we have body if(info->need_delim) // need delim & iteration produced string? info->r->write_pass_lang(info->r->process(*info->delim_maybe_code)); else