diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-22 14:16:34 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-22 14:16:34 +0000 |
| commit | 0f41b690e0f3f2db1b53b874ae42ec626b7d7096 (patch) | |
| tree | 85024ea09eb177e592e39b35c1b62f2895c790b1 /frontends/php/include/db.inc.php | |
| parent | f7c3e0f85effdc7624e46e8a57790b3616aad7e6 (diff) | |
- [DEV-137] minor fixes (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5645 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
| -rw-r--r-- | frontends/php/include/db.inc.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php index b52e74ac..850a15bd 100644 --- a/frontends/php/include/db.inc.php +++ b/frontends/php/include/db.inc.php @@ -149,7 +149,7 @@ return $result; } - function DBclose(){ + function DBclose(){ global $DB; $result = false; @@ -188,7 +188,7 @@ return $result; } - function DBloadfile($file, &$error){ + function DBloadfile($file, &$error){ global $DB; if(!file_exists($file)){ @@ -218,9 +218,9 @@ function DBstart(){ global $DB; - +//SDI('DBStart(): '.$DB['TRANSACTIONS']); $DB['TRANSACTIONS']++; - + if($DB['TRANSACTIONS']>1){ info('POSSIBLE ERROR: Used incorect logic in database processing, started subtransaction!'); return $DB['TRANSACTION_STATE']; @@ -254,7 +254,7 @@ function DBend($result=null){ global $DB; - +//SDI('DBend(): '.$DB['TRANSACTIONS']); if($DB['TRANSACTIONS'] != 1){ $DB['TRANSACTIONS']--; @@ -265,7 +265,7 @@ } return $DB['TRANSACTION_STATE']; } - + $DB['TRANSACTIONS'] = 0; if(empty($result)) @@ -420,9 +420,8 @@ function DBexecute($query, $skip_error_messages=0){ global $DB; - +//SDI($query); //COpt::savesqlrequest($query); - $result = false; if( isset($DB['DB']) && !empty($DB['DB']) ) |
