Skip to content

Commit 3658a1b

Browse files
authored
Update AbstractResource.php
1 parent 45b624c commit 3658a1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ public function commit()
9292
*/
9393
if ($this->getConnection()->getTransactionLevel() === 0) {
9494
$callbacks = CallbackPool::get(spl_object_hash($this->getConnection()));
95-
try {
96-
foreach ($callbacks as $callback) {
97-
call_user_func($callback);
98-
}
99-
} catch (\Exception $e) {
95+
foreach ($callbacks as $callback) {
96+
try {
97+
call_user_func($callback);
98+
} catch (\Exception $e) {
10099
$this->getLogger()->critical($e);
100+
}
101101
}
102102
}
103103
return $this;

0 commit comments

Comments
 (0)