Skip to content

Commit 72ee6d1

Browse files
Stefan HeimesStefan Heimes
Stefan Heimes
authored and
Stefan Heimes
committed
Correct an empty array check
1 parent a185291 commit 72ee6d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Controller/DatabasePopupController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ public function showNormalDatabase()
191191
}
192192

193193
// If no table is found skip the view
194-
if (count($this->arrSyncSettings['syncCto_CompareTables']['recommended']) == 0
195-
&& count($this->arrSyncSettings['syncCto_CompareTables']['nonRecommended']) == 0
194+
if (
195+
count($this->arrSyncSettings['syncCto_CompareTables']['recommended'] ?? []) == 0
196+
&& count($this->arrSyncSettings['syncCto_CompareTables']['nonRecommended'] ?? []) == 0
196197
) {
197198
unset($this->arrSyncSettings['syncCto_CompareTables']);
198199
$this->arrSyncSettings['syncCto_SyncDeleteTables'] = array();

0 commit comments

Comments
 (0)