Re: [Phplib-users] Template - block name showing when no block returned
Brought to you by:
nhruby,
richardarcher
|
From: Layne W. <la...@if...> - 2002-04-17 16:34:53
|
> I have blocks working but if the database query returns no records
> I get the bookmark, ie {block_name}. I have checked the archive and
> it suggests this has bee fixed in 7.2b or 7.2c. I am currentl using
> 7.2d and it still doesn't work. Can any one tell me if this has
> indeed been fixed and if so where I can find the fix?
Have you set unknowns to "keep" when initializing Template? If so, you'll
want to set the block to a null string if there are no records found. The
problem that was fixed in 7.2b affected all blocks in PHP 4, not just empty
ones.
Layne Weathers
Ifworld Inc.
|