Skip to content
Snippets Groups Projects
Commit 5f2cdf81 authored by Prasad's avatar Prasad
Browse files

Fixed variable check before use

parent 18ee7b5f
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,10 @@ class PearDatabase{
function startTransaction() {
/* Restore php_mysql based behavior */
if (true) { $this->database->Execute('SET AUTOCOMMIT=1'); return; }
if (true) {
if ($this->database) $this->database->Execute('SET AUTOCOMMIT=1');
return;
}
if($this->isPostgres()) return;
$this->checkConnection();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment