Skip to content
Snippets Groups Projects
Commit 056ddfcd authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

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
...@@ -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) {
......
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