Skip to content

Commit

Permalink
Fix "Invalid argument supplied for foreach()"
Browse files Browse the repository at this point in the history
This warning showed up when the updateserver was down.
  • Loading branch information
blackcoder87 committed Jun 20, 2018
1 parent 34892f8 commit 5cbe3f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/modules/admin/views/admin/layouts/index.php
Expand Up @@ -38,6 +38,7 @@
<div class="pull-left">
<?php
$layoutOnUpdateServerFound = null;
$layoutsOnUpdateServer = (empty($layoutsOnUpdateServer)) ? [] : $layoutsOnUpdateServer;
foreach ($layoutsOnUpdateServer as $layoutOnUpdateServer) {
if ($layoutOnUpdateServer->key == $layout->getKey()) {
$layoutOnUpdateServerFound = $layoutOnUpdateServer;
Expand Down

0 comments on commit 5cbe3f4

Please sign in to comment.