Skip to content

Commit

Permalink
Fix null in db in debuglog
Browse files Browse the repository at this point in the history
  • Loading branch information
qurben committed Oct 29, 2023
1 parent 8a9f581 commit 7bfc21f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LDAP
{
//## private ###

/** @var resource|bool */
/** @var \LDAP\Connection|resource|bool */
private $conn = false;
private $baseLeden;
private $baseGroepen;
Expand Down
2 changes: 2 additions & 0 deletions lib/repository/DebugLogRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function log($class, $function, array $args = [], $dump = null)
if ($this->requestStack->getCurrentRequest()) {
$entry->request =
$this->requestStack->getCurrentRequest()->getRequestUri() ?: 'CLI';
} else {
$entry->request = 'CLI';
}
$entry->user_agent = @$_SERVER['HTTP_USER_AGENT'] ?: 'CLI';

Expand Down

0 comments on commit 7bfc21f

Please sign in to comment.