fix display error by empty array

This commit is contained in:
Dario Rekowski on RockPI 2020-01-17 19:11:43 +00:00
parent 8663ae861c
commit 9eeed3f9ee
2 changed files with 4 additions and 3 deletions

View File

@ -210,10 +210,11 @@ class StateUsersController extends AppController
} else {
$this->Flash->error(__('Something was invalid, please try again!'));
}
$timeUsed = microtime(true) - $startTime;
$this->set('finalUserEntrys', $finalUserEntrys);
$this->set('timeUsed', $timeUsed);
}
$timeUsed = microtime(true) - $startTime;
$this->set('timeUsed', $timeUsed);
}
/**

View File

@ -67,7 +67,7 @@ $this->loadHelper('Form', [
</tbody>
</table>
</div>
<?php else : ?>
<?php elseif(isset($finalUserEntrys)) : ?>
<div class="grid-body py-3">
<p class="grid-header"><?= __('Keine Benutzer gefunden') ?></p>
</div>