Skip to content

Commit

Permalink
fix missing variable #177
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Dec 12, 2016
1 parent 31c32a5 commit e2cf711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function log($flag=TRUE) {
PHP_EOL;
} else {
$this->log=FALSE;
if ($legacy)
if ($this->legacy)
$this->db->setprofilinglevel(-1);
else
$this->db->command(['profile'=>-1]);
Expand All @@ -93,7 +93,7 @@ function log($flag=TRUE) {
function drop() {
$out=$this->db->drop();
if ($this->log!==FALSE) {
if ($legacy)
if ($this->legacy)
$this->db->setprofilinglevel(2);
else
$this->db->command(['profile'=>2]);
Expand Down

0 comments on commit e2cf711

Please sign in to comment.