improve conditional

This commit is contained in:
dignajar 2020-07-01 20:09:20 +02:00
parent 4282a976a6
commit 8bbb896740

View file

@ -80,7 +80,7 @@
<?php
if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) {
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
} else if (!empty($layout['plugin']) && method_exists($layout['plugin'], 'adminView')) {
} elseif ($layout['plugin'] && method_exists($layout['plugin'], 'adminView')) {
echo $layout['plugin']->adminView();
} else {
echo '<h1 class="text-center">'.$L->g('Page not found').'</h1>';