Skip to content

Commit

Permalink
Fix for console displaying REQUEST_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Nov 18, 2024
1 parent a2fadc5 commit 8ae22ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/libs/pot/OTS_DB_MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public function __destruct()
}

if($this->logged) {
log_append('database.log', $_SERVER['REQUEST_URI'] . PHP_EOL . $this->getLog());
$currentScript = $_SERVER['REQUEST_URI'] ?? $_SERVER['SCRIPT_FILENAME'];
log_append('database.log', $currentScript . PHP_EOL . $this->getLog());
}
}

Expand Down

0 comments on commit 8ae22ac

Please sign in to comment.