Skip to content

Commit abe3a99

Browse files
committed
Update sidebar.blade.php
1 parent c2632be commit abe3a99

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/views/layouts/sidebar.blade.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function has_sslsb( $domain ) {
194194
<div class="row">
195195
196196
<! –– #### begin update detection #### ––>
197-
@if(env('NOTIFY_UPDATES') == 'old')
197+
@if(env('NOTIFY_UPDATES') === 'old')
198198
<! –– Checks if file version.json exists to continue (without this PHP will throw ErrorException ) ––>
199199
@if(file_exists(base_path("version.json")))
200200
@@ -213,9 +213,7 @@ function has_sslsb( $domain ) {
213213
<a style="color:#007bff" class="nav-link" href="{{ url('update') }}" title="Click here to learn more about how to update">An update is available</a>
214214
@endif
215215
@endif
216-
@elseif(env('NOTIFY_UPDATES') == 'false')
217-
{{-- No update checks --}}
218-
@else
216+
@elseif(env('NOTIFY_UPDATES') === 'true' or env('NOTIFY_UPDATES') === 'major' or env('NOTIFY_UPDATES') === 'all')
219217
<?php // Checks if URL exists
220218
try {
221219
function URL_exists(string $url): bool

0 commit comments

Comments
 (0)