phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19086] Fix a notice php was complaining about automa


From: Caeies
Subject: [Phpgroupware-cvs] [19086] Fix a notice php was complaining about automatically converting an array to string ...
Date: Wed, 18 Feb 2009 18:32:37 +0000

Revision: 19086
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19086
Author:   Caeies
Date:     2009-02-18 18:32:37 +0000 (Wed, 18 Feb 2009)

Log Message:
-----------
Fix a notice php was complaining about automatically converting an array to 
string ... this is fixed here, but I guess that the real fix should be done 
elsewhere (in the email application for example)

Modified Paths:
--------------
    core/trunk/phpgwapi/inc/class.Template.inc.php

Modified: core/trunk/phpgwapi/inc/class.Template.inc.php
===================================================================
--- core/trunk/phpgwapi/inc/class.Template.inc.php      2009-02-18 18:30:52 UTC 
(rev 19085)
+++ core/trunk/phpgwapi/inc/class.Template.inc.php      2009-02-18 18:32:37 UTC 
(rev 19086)
@@ -521,6 +521,12 @@
                reset($this->varvals);
                while (list($k, $v) = each($this->varvals)) {
                        $varvals_quoted[$k] = preg_replace(array('/\\\\/', 
'/\$/'), array('\\\\\\\\', '\\\\$'), $v);
+                       //XXX Caeies 02/09 Ouch how is this possible ?
+                       if(is_array($varvals_quoted[$k]))
+                       {
+                               //_debug_array($k);
+                               $varvals_quoted[$k] = 
implode($varvals_quoted[$k]);
+                       }
                }
 
                $str = $this->get_var($varname);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]