diff options
author | Klaus <klaus@jsxc.org> | 2019-05-13 15:36:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 15:36:51 +0300 |
commit | 8c5d5334e104d5cfd7d45ce3475efaa7de7e096e (patch) | |
tree | 12858ea5c520a1a0f1253223386463ed99b41d43 | |
parent | f7a9adf3aff23cead9c425405d757a65e2c354e9 (diff) |
fix undefined index (fix #69)
-rwxr-xr-x | appinfo/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index eeffecb..7409a8c 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -11,7 +11,7 @@ if (!empty($url)) { ); $parseurl = parse_url($url); - $url = $parseurl['host']; + $url = (isset($parseurl['host'])) ? $parseurl['host'] : false; if (isset($parseurl['port'])) { $url .= ':' . (string) $parseurl['port']; } |