Skip to content
Snippets Groups Projects
Commit 24b27b33 authored by Tyler Antonio's avatar Tyler Antonio
Browse files

Fixed bug with adding metadata where it would try to run an UPDATE against the...

Fixed bug with adding metadata where it would try to run an UPDATE against the SQL DB if an entry did not already exist.
parent 4a426c21
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerPdo extends SimpleSAML_Metadata_
$metadata->execute();
$retrivedEntityIDs = $metadata->fetch();
if(count($retrivedEntityIDs) > 0){
if($retrivedEntityIDs !== FALSE && count($retrivedEntityIDs) > 0){
$stmt = $this->pdo->prepare("UPDATE $tableName SET entity_data = :entity_data WHERE entity_id = :entity_id");
}
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment