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
/
Entity
/
KeyValueStore
/
Query
/
Query.php
diff --git
a/web/core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php
b/web/core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php
index 3f7a6a616a28da74c576ca28144b228472257e2a..7a0309262514b24cc2d9d41d17a726658c319e55 100644
(file)
--- a/
web/core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php
+++ b/
web/core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php
@@
-50,7
+50,7
@@
class Query extends QueryBase {
foreach ($this->sort as $sort) {
$direction = $sort['direction'] == 'ASC' ? -1 : 1;
$field = $sort['field'];
foreach ($this->sort as $sort) {
$direction = $sort['direction'] == 'ASC' ? -1 : 1;
$field = $sort['field'];
- uasort($result, function($a, $b) use ($field, $direction) {
+ uasort($result, function
($a, $b) use ($field, $direction) {
return ($a[$field] <= $b[$field]) ? $direction : -$direction;
});
}
return ($a[$field] <= $b[$field]) ? $direction : -$direction;
});
}