fix some PHP8 warnings generated while dragging feed tree items around

This commit is contained in:
Andrew Dolgov 2022-10-15 13:44:02 +03:00
parent b702761941
commit f56a049641
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ class Pref_Feeds extends Handler_Protected {
$order_id = 1;
$cat = $data_map[$item_id];
$cat = ($data_map[$item_id] ?? false);
if ($cat && is_array($cat)) {
foreach ($cat as $item) {
@ -436,7 +436,7 @@ class Pref_Feeds extends Handler_Protected {
foreach ($data['items'] as $item) {
# if ($item['id'] != 'root') {
if (is_array($item['items'])) {
if (is_array($item['items'] ?? false)) {
if (isset($item['items']['_reference'])) {
$data_map[$item['id']] = array($item['items']);
} else {