ソースを参照

Fix PHP warnings

Sunny 2 年 前
コミット
a552b4ab9d
1 ファイル変更2 行追加2 行削除
  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";