Browse Source

Fix PHP warnings

Sunny 2 years ago
parent
commit
a552b4ab9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utilities/link.php

+ 2 - 2
utilities/link.php

@@ -1,8 +1,8 @@
 <?php
   function convert_link($link) {
-    if ($_SERVER["REQUEST_SCHEME"])
+    if (isset($_SERVER["REQUEST_SCHEME"]))
       $scheme = $_SERVER["REQUEST_SCHEME"];
-    elseif ($_SERVER["HTTPS"])
+    elseif (isset($_SERVER["HTTPS"]))
       $scheme = "https";
     else
       $scheme = "http";