RE: [Phplib-users] Template - block name showing when no block re turned
Brought to you by:
nhruby,
richardarcher
|
From: Rogers, P. <Pau...@mo...> - 2002-04-18 07:38:31
|
Layne
Thanks for the email. You're right, I had left "keep" in the initialisation
statement (I've been blindly following the examples I found on day one).
Removing it has fixed the problem. Is there any reason for leaving it in,
other than for debugging?
Many thanks
Paul
-----Original Message-----
From: Layne Weathers [mailto:la...@if...]
Sent: 17 April 2002 17:39
To: 'Rogers, Paul'; 'Phplib-Users (E-mail)'
Subject: Re: [Phplib-users] Template - block name showing when no block
returned
> 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.
*****************************************************************************
This email and any attachments transmitted with it are confidential
and intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the sender and do not store, copy or disclose the content
to any other person.
It is the responsibility of the recipient to ensure that opening this
message and/or any of its attachments will not adversely affect
its systems. No responsibility is accepted by the Company.
*****************************************************************************
|