We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e78b1a commit bbc0e8eCopy full SHA for bbc0e8e
resources/views/layouts/sidebar.blade.php
@@ -130,14 +130,16 @@ function update_color_scheme() {
130
<! –– #### begin update detection #### ––>
131
132
<?php // Checks if URL exists
133
+ try {
134
function URL_exists(string $url): bool
135
{
136
return str_contains(get_headers($url)[0], "200 OK");
137
}
138
// Sets $ServerExists to true if URL exists
139
if (URL_exists("https://littlelink-custom.tru.io/version.json")){
140
$ServerExists = "true";
- } else {
141
+ }
142
+ } catch (exception $e) {
143
$ServerExists = "false";
144
145
?>
0 commit comments