OSDN Git Service

sync with the original 3.3 release
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 8 Aug 2007 05:23:31 +0000 (05:23 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 8 Aug 2007 05:23:31 +0000 (05:23 +0000)
- use the old fashion way without the mysqli function (critical bug: doesn't work with PHP 5.2.1 and MySQL 5.0.33 - should be solved in the next version)

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@304 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/backup.php

index b455b5f..e09fe68 100755 (executable)
@@ -16,8 +16,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: backup.php,v 1.8 2007-02-19 22:27:59 kmorimatsu Exp $
- * $NucleusJP: backup.php,v 1.7 2007/02/04 06:28:46 kimitake Exp $
+ * @version $Id: backup.php,v 1.8.2.1 2007-08-08 05:23:31 kimitake Exp $
+ * $NucleusJP: backup.php,v 1.8 2007/02/19 22:27:59 kmorimatsu Exp $
  */
 
 
@@ -217,20 +217,20 @@ function _backup_dump_structure($tablename) {
  */
 function _backup_get_field_names($result, $num_fields) {
 
-       if (function_exists('mysqli_fetch_fields') ) {
+/*     if (function_exists('mysqli_fetch_fields') ) {
                
                $fields = mysqli_fetch_fields($result);
                for ($j = 0; $j < $num_fields; $j++)
                        $fields[$j] = $fields[$j]->name;
 
-       } else {
+       } else {*/
 
                $fields = array();
                for ($j = 0; $j < $num_fields; $j++) {
                        $fields[] = mysql_field_name($result, $j);
                }
 
-       }
+/*     }*/
        
        return '(' . implode(', ', $fields) . ')';      
 }