phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/setup tables_update.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/setup tables_update.inc.php
Date: Mon, 18 Sep 2006 08:32:33 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   06/09/18 08:32:33

Modified files:
        setup          : tables_update.inc.php 

Log message:
        Altered metadata for adodb

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/setup/tables_update.inc.php?cvsroot=phpgroupware&r1=1.50&r2=1.51

Patches:
Index: tables_update.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/setup/tables_update.inc.php,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- tables_update.inc.php       14 Sep 2006 13:53:52 -0000      1.50
+++ tables_update.inc.php       18 Sep 2006 08:32:33 -0000      1.51
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage setup
-       * @version $Id: tables_update.inc.php,v 1.50 2006/09/14 13:53:52 
sigurdne Exp $
+       * @version $Id: tables_update.inc.php,v 1.51 2006/09/18 08:32:33 
sigurdne Exp $
        */
 
        /**
@@ -428,6 +428,18 @@
 
                        $metadata = 
$GLOBALS['phpgw_setup']->db->metadata('fm_location'.$location_type);
 
+                       if(isset($GLOBALS['phpgw_setup']->db->adodb))
+                       {
+                               $i = 0;
+                               foreach($metadata as $key => $val)
+                               {
+                                       $metadata_temp[$i]['name'] = $key;
+                                       $i++;
+                               }
+                               $metadata = $metadata_temp;
+                               unset ($metadata_temp);
+                       }
+
                        for ($i=0; $i<count($metadata); $i++)
                        {
                                $sql = "SELECT * FROM fm_location_attrib WHERE 
type_id=$location_type AND column_name = '" . $metadata[$i]['name'] . "'";




reply via email to

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