projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Database
/
StatementPrefetch.php
diff --git
a/web/core/lib/Drupal/Core/Database/StatementPrefetch.php
b/web/core/lib/Drupal/Core/Database/StatementPrefetch.php
index 80252209e694ba9de0917f05a8c905fcf1f55ab8..4e940ea372ed393ad18223c006ab69bed2d77685 100644
(file)
--- a/
web/core/lib/Drupal/Core/Database/StatementPrefetch.php
+++ b/
web/core/lib/Drupal/Core/Database/StatementPrefetch.php
@@
-497,8
+497,9
@@
class StatementPrefetch implements \Iterator, StatementInterface {
* {@inheritdoc}
*/
public function fetchAllKeyed($key_index = 0, $value_index = 1) {
* {@inheritdoc}
*/
public function fetchAllKeyed($key_index = 0, $value_index = 1) {
- if (!isset($this->columnNames[$key_index]) || !isset($this->columnNames[$value_index]))
+ if (!isset($this->columnNames[$key_index]) || !isset($this->columnNames[$value_index]))
{
return [];
return [];
+ }
$key = $this->columnNames[$key_index];
$value = $this->columnNames[$value_index];
$key = $this->columnNames[$key_index];
$value = $this->columnNames[$value_index];