[Tickets #938] NEW: Display error upon adding a contact

bugs at bugs.horde.org bugs at bugs.horde.org
Sat Dec 4 16:09:07 PST 2004


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

Ticket URL: http://bugs.horde.org/ticket/?id=938
-----------------------------------------------------------------------
 Ticket     | 938
 Created By | mik at galaxie.net
 Summary    | Display error upon adding a contact
 Queue      | Turba
 Version    | 2.0-RC2
 State      | Unconfirmed
 Priority   | 2. Medium
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


mik at galaxie.net (2004-12-04 16:09) wrote:

Submitting the form in add.php redirects to display.php, where a display
error shows "Fatal, cannot use Variable object as array  in file
ObjectView.php at line 111".
the idea is:
$form->_vars                 is the Variables object
$form->_vars->_vars    is the actual array

The following patch fixes the problem:

*** ./ObjectView.php    Wed Nov 17 21:36:41 2004
--- ./fixed/ObjectView.php    Sun Dec  5 00:28:19 2004
***************
*** 109,113 ****
                      if (($attribute['type'] == 'email') &&
                          (basename($_SERVER['PHP_SELF']) == 'display.php'))
{
!                         $params = array(false, false, true,
(!empty($form->_vars['name'])) ? $form->_vars['name'] : null);
                      }

--- 109,113 ----
                      if (($attribute['type'] == 'email') &&
                          (basename($_SERVER['PHP_SELF']) == 'display.php'))
{
!                         $params = array(false, false, true,
(!empty($form->_vars->_vars['name'])) ? $form->_vars->_vars['name'] :
null);
                      }






More information about the bugs mailing list