Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SWITCHwayf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AAI
SWITCHwayf
Commits
589c6318
Commit
589c6318
authored
Sep 27, 2018
by
Lukas Haemmerle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed two PHP warnings due to uninitialized variables
parent
dc2d3f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/update-metadata.php
bin/update-metadata.php
+2
-2
No files found.
bin/update-metadata.php
View file @
589c6318
...
...
@@ -142,7 +142,7 @@ if (isset($options['min-idp-count'])) {
}
// Input validation
if
(
$metadataURL
)
{
if
(
isset
(
$metadataURL
)
&&
$metadataURL
)
{
$metadataFile
=
tempnam
(
sys_get_temp_dir
(),
'metadata'
);
if
(
!
ini_get
(
'allow_url_fopen'
))
{
reportError
(
"Exiting: allow_url_fopen disabled, unabled to download
$metadataURL
\n
"
);
...
...
@@ -219,7 +219,7 @@ if (is_array($metadataSProviders)){
}
// clean up if needed
if
(
$metadataURL
)
{
if
(
isset
(
$metadataURL
)
&&
$metadataURL
)
{
$result
=
@
unlink
(
$metadataFile
);
if
(
!
$result
)
{
$error
=
error_get_last
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment