mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 11:03:17 +00:00
Bump Version and fix array_filter arguments order
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Alchemy\Phrasea\Core;
|
|||||||
|
|
||||||
class Version
|
class Version
|
||||||
{
|
{
|
||||||
private $number = '3.9.0-alpha.20';
|
private $number = '3.9.0-alpha.22';
|
||||||
private $name = 'Herrerasaurus';
|
private $name = 'Herrerasaurus';
|
||||||
|
|
||||||
public function getNumber()
|
public function getNumber()
|
||||||
|
@@ -35,9 +35,9 @@ class databox_status
|
|||||||
|
|
||||||
foreach ($structures as $databox_id => $structure) {
|
foreach ($structures as $databox_id => $structure) {
|
||||||
if (false === $see_all[$databox_id]) {
|
if (false === $see_all[$databox_id]) {
|
||||||
$structure = array_filter(function($status) {
|
$structure = array_filter($structure->toArray(), function ($status) {
|
||||||
return (bool) $status['searchable'];
|
return (bool) $status['searchable'];
|
||||||
}, $structure->toArray());
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($structure as $bit => $status) {
|
foreach($structure as $bit => $status) {
|
||||||
|
Reference in New Issue
Block a user