Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus <klaus@jsxc.org>2019-05-13 15:36:51 +0300
committerGitHub <noreply@github.com>2019-05-13 15:36:51 +0300
commit8c5d5334e104d5cfd7d45ce3475efaa7de7e096e (patch)
tree12858ea5c520a1a0f1253223386463ed99b41d43
parentf7a9adf3aff23cead9c425405d757a65e2c354e9 (diff)
fix undefined index (fix #69)
-rwxr-xr-xappinfo/app.php2
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'];
}