Skip to content

Commit 38f59ed

Browse files
committed
build
1 parent 12fb150 commit 38f59ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,7 +3967,7 @@ public function getFksTo(string $tableName): array
39673967
{
39683968
$columns = array();
39693969
foreach ($this->fks as $columnName => $referencedTableName) {
3970-
if ($tableName == $referencedTableName) {
3970+
if ($tableName == $referencedTableName && !is_null($this->columns[$columnName])) {
39713971
$columns[] = $this->columns[$columnName];
39723972
}
39733973
}
@@ -7602,10 +7602,10 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
76027602
return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, '');
76037603
}
76047604
if ($method == 'GET' && $path == 'me') {
7605-
if (isset($_SESSION['user'])) {
7606-
return $this->responder->success($_SESSION['user']);
7607-
}
7608-
return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, '');
7605+
if (isset($_SESSION['user'])) {
7606+
return $this->responder->success($_SESSION['user']);
7607+
}
7608+
return $this->responder->error(ErrorCode::AUTHENTICATION_REQUIRED, '');
76097609
}
76107610
if (!isset($_SESSION['user']) || !$_SESSION['user']) {
76117611
$authenticationMode = $this->getProperty('mode', 'required');

0 commit comments

Comments
 (0)