[Tickets #1558] RESOLVED: in templates allow to check if array members exist

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Jul 22 11:02:51 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1558
-----------------------------------------------------------------------
 Ticket             | 1558
 Updated By         | Chuck Hagenbuch <chuck at horde.org>
 Summary            | in templates allow to check if array members exist
 Queue              | Horde Framework Packages
-State              | Assigned
+State              | Rejected
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | Horde Developers
-----------------------------------------------------------------------


Chuck Hagenbuch <chuck at horde.org> (2005-07-22 11:02) wrote:

I finally had a look into this, and this isn't going to change. The code
that sets things up needs to be responsible for setting any fields that you
want to test against to false or array().

Why? Because Template doesn't look for what's in the template; it takes the
data you give it and puts it into whatever it finds. So if you don't tell it
about an index, it won't go find it.

So just set 'actions' => array() or => false, and this will work fine.




More information about the bugs mailing list