Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon4.gif   problem with boolean attributes, posted by Heiko Scheit on Fri Aug 1 13:18:42 2003 elog.diff
    icon2.gif   Re: problem with boolean attributes, posted by Stefan Ritt on Fri Sep 5 17:19:11 2003 
Message ID: 420     Entry time: Fri Aug 1 13:18:42 2003     Reply to this: 427
Icon: Warning  Author: Heiko Scheit  Author Email: h.scheit@mpi-hd.mpg.de 
Category: Bug fix  OS: Linux  ELOG Version: 2.3.9. 
Subject: problem with boolean attributes 
Boolean attributes were not displayed correctly in version 2.3.9.
Patch is attached.
Attachment 1: elog.diff  628 Bytes  | Hide | Hide all
--- elogd.c     Fri Aug  1 13:13:09 2003
+++ elogd.c_    Fri Aug  1 13:12:59 2003
@@ -11275,10 +11275,10 @@
         {
         if (atoi(attrib[i]) == 1)
           rsprintf("%s:</td><td class=\"%s\"><input type=checkbox checked disabled></td>\n",
-                   attr_list[i], class_value);
+                   class_value, attr_list[i]);
         else
           rsprintf("%s:</td><td class=\"%s\"><input type=checkbox disabled></td>\n",
-                   attr_list[i], class_value);
+                   class_value, attr_list[i]);
         }
       /* display image for icon */
       else if (attr_flags[i] & AF_ICON)
ELOG V3.1.5-2eba886