aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-08 15:14:50 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-08 15:14:50 +0000
commit281c8763bd2f3d7e9dd83e7e7772009f18a69b86 (patch)
tree2e2f45e29fb06a44870e953b001307b4d7ee2cba /phpBB/install/install_install.php
parent539ac00f02f24266f598fb746b2e145e1ec46182 (diff)
downloadforums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.gz
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.bz2
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.tar.xz
forums-281c8763bd2f3d7e9dd83e7e7772009f18a69b86.zip
#9659
#9569 git-svn-id: file:///svn/phpbb/trunk@7302 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-xphpBB/install/install_install.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 06c360d20c..5808b10557 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1415,7 +1415,7 @@ class install_install extends module
$this->p_master->db_error($error['message'], $db->sql_error_sql, __LINE__, __FILE__);
}
- $categories[$cat_name]['id'] = $module_data['module_id'];
+ $categories[$cat_name]['id'] = (int) $module_data['module_id'];
$categories[$cat_name]['parent_id'] = 0;
// Create sub-categories...
@@ -1427,7 +1427,7 @@ class install_install extends module
'module_basename' => '',
'module_enabled' => 1,
'module_display' => 1,
- 'parent_id' => $categories[$cat_name]['id'],
+ 'parent_id' => (int) $categories[$cat_name]['id'],
'module_class' => $module_class,
'module_langname' => $level2_name,
'module_mode' => '',
@@ -1443,8 +1443,8 @@ class install_install extends module
$this->p_master->db_error($error['message'], $db->sql_error_sql, __LINE__, __FILE__);
}
- $categories[$level2_name]['id'] = $module_data['module_id'];
- $categories[$level2_name]['parent_id'] = $categories[$cat_name]['id'];
+ $categories[$level2_name]['id'] = (int) $module_data['module_id'];
+ $categories[$level2_name]['parent_id'] = (int) $categories[$cat_name]['id'];
}
}
}
@@ -1466,7 +1466,7 @@ class install_install extends module
'module_basename' => $module_basename,
'module_enabled' => 1,
'module_display' => (isset($row['display'])) ? $row['display'] : 1,
- 'parent_id' => $categories[$cat_name]['id'],
+ 'parent_id' => (int) $categories[$cat_name]['id'],
'module_class' => $module_class,
'module_langname' => $row['title'],
'module_mode' => $module_mode,
@@ -1569,7 +1569,7 @@ class install_install extends module
unset($module_data['left_id']);
unset($module_data['right_id']);
- $module_data['parent_id'] = $row2['module_id'];
+ $module_data['parent_id'] = (int) $row2['module_id'];
$_module->update_module_data($module_data, true);