Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
056ddfcd
Commit
056ddfcd
authored
6 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
set $data to null to prevent PHP notice when entityid not found
parent
ff13760a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
+1
-1
1 addition, 1 deletion
lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
with
1 addition
and
1 deletion
lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
+
1
−
1
View file @
056ddfcd
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
* mooknarf@gmail.com and patched to work with the latest version
* mooknarf@gmail.com and patched to work with the latest version
* of SimpleSAMLphp
* of SimpleSAMLphp
*
*
* @author Tyler Antonio, University of Alberta <tantonio@ualberta.ca>
* @package SimpleSAMLphp
* @package SimpleSAMLphp
*/
*/
class
SimpleSAML_Metadata_MetaDataStorageHandlerPdo
extends
SimpleSAML_Metadata_MetaDataStorageSource
class
SimpleSAML_Metadata_MetaDataStorageHandlerPdo
extends
SimpleSAML_Metadata_MetaDataStorageSource
...
@@ -165,6 +164,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerPdo extends SimpleSAML_Metadata_
...
@@ -165,6 +164,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerPdo extends SimpleSAML_Metadata_
$stmt
=
$this
->
db
->
read
(
"SELECT entity_id, entity_data FROM
$tableName
WHERE entity_id=:entityId"
,
array
(
'entityId'
=>
$entityId
));
$stmt
=
$this
->
db
->
read
(
"SELECT entity_id, entity_data FROM
$tableName
WHERE entity_id=:entityId"
,
array
(
'entityId'
=>
$entityId
));
if
(
$stmt
->
execute
())
{
if
(
$stmt
->
execute
())
{
$rowCount
=
0
;
$rowCount
=
0
;
$data
=
null
;
while
(
$d
=
$stmt
->
fetch
())
{
while
(
$d
=
$stmt
->
fetch
())
{
if
(
++
$rowCount
>
1
)
{
if
(
++
$rowCount
>
1
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment