diff --git a/ext/mime/main.php b/ext/mime/main.php index c98adde5..de0f22e9 100644 --- a/ext/mime/main.php +++ b/ext/mime/main.php @@ -26,7 +26,7 @@ class MimeSystem extends Extension // adjustment needs to be made to the mime types. if ($this->get_version(self::VERSION) < 1) { - if ($database->transaction) { + if ($database->is_transaction_open()) { // Each of these commands could hit a lot of data, combining // them into one big transaction would not be a good idea. $database->commit(); diff --git a/ext/upgrade/main.php b/ext/upgrade/main.php index 1cb8530d..0974631e 100644 --- a/ext/upgrade/main.php +++ b/ext/upgrade/main.php @@ -186,7 +186,7 @@ class Upgrade extends Extension if ($this->get_version("db_version") < 21) { log_info("upgrade", "Setting predictable media values for known file types"); - if ($database->transaction) { + if ($database->is_transaction_open()) { // Each of these commands could hit a lot of data, combining // them into one big transaction would not be a good idea. $database->commit();