Skip to content

Commit

Permalink
Used the PHP_VERSION_ID constant to comapre, instead of
Browse files Browse the repository at this point in the history
version_compare()
  • Loading branch information
Adrian Hardy committed Jul 30, 2014
1 parent 2a657fd commit 8f05d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Docnet/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function begin()
return $this;
}

if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
if (PHP_VERSION_ID >= 50500) {
$bol_success = $this->obj_db->begin_transaction();
} else {
$bol_success = $this->obj_db->query('BEGIN');
Expand Down

0 comments on commit 8f05d91

Please sign in to comment.