do not use ?finally?-statement (not available for PHP <= 5.4)

This commit is contained in:
coderkun 2014-01-29 12:50:04 +01:00
commit 59d7857ffb
2 changed files with 6 additions and 5 deletions

View file

@ -82,10 +82,12 @@
}
$stmt->close();
return $data;
}
finally {
catch(Exception $e) {
$stmt->close();
throw $e;
}
}

View file

@ -190,12 +190,11 @@
}
catch(Exception $e) {
$this->db->rollback();
$this->db->setAutocommit(true);
throw $e;
}
finally {
$this->db->setAutocommit(true);
}
}
/**