<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>UI VarRenderer Logic Bug</title> 
  <pubDate>Fri, 10 Apr 2026 07:55:47 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/787</link> 
  <atom:link rel="self" type="application/rss+xml" title="UI VarRenderer Logic Bug" href="https://bugs.horde.org/ticket/787/rss" /> 
  <description>UI VarRenderer Logic Bug</description> 
 
   
   
  <item> 
   <title>I came across a problem where using the &#039;prompt&#039; =&gt; true opt</title> 
   <description>I came across a problem where using the &#039;prompt&#039; =&gt; true option for enum Form types where if you submitted a form, and &quot;-- select --&quot; was highlighted, when the form came back, the first viable option was selected, rather than still being &quot;-- select --&quot;



The hard part was that it sometimes worked, and othertimes didn&#039;t, but it came down to a logic error.  Basically if the $values array contained a &quot;0&quot;, it thought that the var was selected because in php &#039;false&#039; == 0, so I had to do a === to get it to work right.



It&#039;ll make more sense once you see the patch.



Thanks.</description> 
   <pubDate>Mon, 08 Nov 2004 22:43:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/787#t2897</link> 
  </item> 
   
  <item> 
   <title>Patch to fix 0 == false error.</title> 
   <description>Patch to fix 0 == false error.</description> 
   <pubDate>Mon, 08 Nov 2004 22:44:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/787#t2898</link> 
  </item> 
   
  <item> 
   <title>Fixed, thanks.</title> 
   <description>Fixed, thanks.</description> 
   <pubDate>Tue, 09 Nov 2004 19:36:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/787#t2921</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
