Skip to content

Commit

Permalink
Fixed issue #13923: unable to log in into Admin Backend. Error "Undef…
Browse files Browse the repository at this point in the history
…ined variable: security_update_available"
  • Loading branch information
lacrioque committed Aug 1, 2018
1 parent d905a9a commit 87654a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/models/UpdateForm.php
Expand Up @@ -578,13 +578,16 @@ public function getUpdateNotification()

$updates = $this->getUpdateInfo('1');
$update_available = false;

if ($updates->result) {
unset($updates->result);

$security_update_available = false;
$unstable_update_available = false;

if (is_array($updates) || $updates instanceof Countable) {
if (count($updates) > 0) {
$update_available = true;
$security_update_available = false;
$unstable_update_available = false;
foreach ($updates as $update) {
if ($update->security_update) {
$security_update_available = true;
Expand Down

0 comments on commit 87654a2

Please sign in to comment.