File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3967,7 +3967,7 @@ public function getFksTo(string $tableName): array
3967
3967
{
3968
3968
$ columns = array ();
3969
3969
foreach ($ this ->fks as $ columnName => $ referencedTableName ) {
3970
- if ($ tableName == $ referencedTableName ) {
3970
+ if ($ tableName == $ referencedTableName && ! is_null ( $ this -> columns [ $ columnName ]) ) {
3971
3971
$ columns [] = $ this ->columns [$ columnName ];
3972
3972
}
3973
3973
}
@@ -7602,10 +7602,10 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
7602
7602
return $ this ->responder ->error (ErrorCode::AUTHENTICATION_REQUIRED , '' );
7603
7603
}
7604
7604
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 , '' );
7609
7609
}
7610
7610
if (!isset ($ _SESSION ['user ' ]) || !$ _SESSION ['user ' ]) {
7611
7611
$ authenticationMode = $ this ->getProperty ('mode ' , 'required ' );
You can’t perform that action at this time.
0 commit comments