Update db.php

This commit is contained in:
Momchil Bozhinov
2021-02-16 13:07:14 +02:00
parent 2d989cdff1
commit 3e2d8d5a39

View File

@@ -173,7 +173,7 @@ class Db {
$i++;
}
$query->execute();
$query->commit();
$this->_pdo->commit();
} catch(PDOException $e) {
return array('error'=>true,'info'=>$e->getMessage());
}
@@ -194,7 +194,7 @@ class Db {
}
$query->execute();
$rowCount=$query->rowCount();
$query->commit();
$this->_pdo->commit();
} catch(PDOException $e) {
return false;//$e->getMessage();
}