Update oracle.php

This commit is contained in:
Namhyeon Go 2018-03-27 11:10:29 +09:00 committed by GitHub
parent 48ace86c4a
commit 89e10895b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,10 @@ function exec_db_oracle_connect($host, $port, $user, $password, $options=array()
// set envs
foreach($options as $k=>$v) {
$k_terms = explode(".", $k);
if($k_terms[0] == "ENV") {
$envs[] = $k_terms[1] . "=" . $options[$k];
if(count($k_terms) > 1) {
if($k_terms[0] == "ENV") {
$envs[] = $k_terms[1] . "=" . $options[$k];
}
}
}