Skip to content

Commit

Permalink
Minor fixes to data connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
spvickers committed Jan 2, 2021
1 parent ecdaa83 commit c8a5a67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DataConnector/DataConnector_oci.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function getPlatforms()
}
$platform->created = strtotime($row['created']);
$platform->updated = strtotime($row['updated']);
$this->fixPlatformSettings($platform, true);
$this->fixPlatformSettings($platform, false);
$consumers[] = $platform;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/DataConnector/DataConnector_pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public function loadPlatform($platform)
"FROM {$this->dbTableNamePrefix}" . static::PLATFORM_TABLE_NAME . ' ' .
'WHERE (consumer_key = :key)';
$query = $this->db->prepare($sql);
$query->bindValue('key', $platform->getKey(), \PDO::PARAM_STR);
$consumer_key = $platform->getKey();
$query->bindValue('key', $consumer_key, \PDO::PARAM_STR);
}
$ok = $this->executeQuery($sql, $query);
if ($ok) {
Expand Down

0 comments on commit c8a5a67

Please sign in to comment.