issue 731, added protection codes related update db.config.php

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-02-29 07:03:43 +00:00
parent 3dead503c0
commit e0fb3866a1

View file

@ -483,6 +483,7 @@
function _getDBConfigFileContents($db_info){
$buff = '<?php if(!defined("__ZBXE__")) exit();'."\n";
$db_info = get_object_vars($db_info);
foreach($db_info as $key => $val) {
if($key == 'master_db'){
$buff .= $this->_getDbConnText($key, $val);