aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 18:40:15 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 18:40:15 +0000
commit425f1f156355a548381b77814767c4f9ab7f7d37 (patch)
treee743205db3f56455b2c83d385d837b7a2ac8122f
parent03aafca5ad78df33d1b9608a27ee4e2b5a7acbe3 (diff)
downloadelgg-425f1f156355a548381b77814767c4f9ab7f7d37.tar.gz
elgg-425f1f156355a548381b77814767c4f9ab7f7d37.tar.bz2
Removed some "Undefined" messages
git-svn-id: https://code.elgg.org/elgg/trunk@2456 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index c93d6ad14..15b70711f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -57,13 +57,13 @@
$page = $url['scheme'] . "://";
// user/pass
- if ($url['user']) $page .= $url['user'];
- if ($url['pass']) $page .= ":".$url['pass'];
+ if ((isset($url['user'])) && ($url['user'])) $page .= $url['user'];
+ if ((isset($url['pass'])) && ($url['pass'])) $page .= ":".$url['pass'];
if (($url['user']) || $url['pass']) $page .="@";
$page .= $url['host'];
- if ($url['port']) $page .= ":" . $url['port'];
+ if ((isset($url['port'])) && ($url['port'])) $page .= ":" . $url['port'];
$page = trim($page, "/"); //$page.="/";