aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index c171b75b2..074204310 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -25,9 +25,10 @@ function forward($location = "") {
if (!headers_sent()) {
$current_page = current_page_url();
- if (strpos($current_page, $CONFIG->wwwroot . "action") ===false)
+ // What is this meant to do?
+ //if (strpos($current_page, $CONFIG->wwwroot . "action") ===false)
- $_SESSION['msg'] = system_messages();
+ $_SESSION['msg'] = array_merge($_SESSION['msg'], system_messages());
if ((substr_count($location, 'http://') == 0) && (substr_count($location, 'https://') == 0)) {
$location = $CONFIG->url . $location;
}