diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-03 13:00:31 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-03 13:00:31 +0000 |
commit | ac719c217c81ab3af3cf9d8dea15bd845d912ed9 (patch) | |
tree | 48848a6fd95f2fa2164e9cca26b294b340ef668e /engine/lib/elgglib.php | |
parent | 060a4be4923fd557b542adb1d88850b38b7cba0d (diff) | |
download | elgg-ac719c217c81ab3af3cf9d8dea15bd845d912ed9.tar.gz elgg-ac719c217c81ab3af3cf9d8dea15bd845d912ed9.tar.bz2 |
Some further fixes
git-svn-id: https://code.elgg.org/elgg/trunk@55 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 53940a0fb..63ff62295 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -66,7 +66,7 @@ }
// Load session and configuration variables
- if (is_array($_SESSION)) {
+ if (is_array($_SESSION) && isset($_SESSION)) {
$vars = array_merge($vars, $_SESSION);
}
if (!empty($CONFIG))
@@ -105,7 +105,7 @@ if (!isset($CONFIG->views->locations[$view])) {
if (!isset($CONFIG->viewpath)) {
- $location = dirname(dirname(dirname(__FILE__))) . "views/";
+ $location = dirname(dirname(dirname(__FILE__))) . "/views/";
} else {
$location = $CONFIG->viewpath;
}
@@ -242,7 +242,7 @@ }
if (!file_exists(dirname(dirname(dirname(__FILE__))) . "/.htaccess")) {
- if (!copy(dirname(dirname(dirname(__FILE__))) . "/htaccess_dist", dirname(dirname(dirname(__FILE__))) . "/.htaccess")) {
+ if (!@copy(dirname(dirname(dirname(__FILE__))) . "/htaccess_dist", dirname(dirname(dirname(__FILE__))) . "/.htaccess")) {
register_error(elgg_view("messages/sanitisation/htaccess"));
$sanitised = false;
}
|