[dev] bug in head - imp/templates/login/login.inc

Rick Emery rick at emery.homelinux.net
Thu Sep 11 10:19:23 PDT 2003


Quoting "Rob S.i.k.l.o.s." <rob2 at siklos.ca>:

> Just updated from CVS, using IMP login page.
>
> Line 245 of imp/templates/login/login.inc has:
> <?php if (!empty($servers_list) || $conf['server']['change_server']): ?>
> ---display username/password textboxes---
> <?php endif; ?>
>
> However, if I only have one server, and I'm not using a servers list,
> $servers_list is empty and I can't enter my username/password.  I'm sure
> this is easy to fix, but I'm not sure how to do it.
>
> Rob.

I *think* this is the correct fix.

Rick
-------------- next part --------------
Index: login.inc
===================================================================
RCS file: /repository/imp/templates/login/login.inc,v
retrieving revision 2.134
diff -u -r2.134 login.inc
--- login.inc	11 Sep 2003 01:56:59 -0000	2.134
+++ login.inc	11 Sep 2003 17:15:20 -0000
@@ -242,7 +242,7 @@
 </tr>
 <?php endif; ?>
 
-<?php if (!empty($servers_list) || $conf['server']['change_server']): ?>
+<?php if (!empty($servers_list) || !($conf['server']['change_server'])): ?>
 <tr>
     <td align="right" class="light"><b><?php echo _("Username") ?></b></td>
     <td align="left" class="light" nowrap="nowrap">


More information about the dev mailing list