From 673abd5cc1ad5e8faec7c5f6c87d962248cfe493 Mon Sep 17 00:00:00 2001 From: Giam Teck Choon Date: Sat, 22 Oct 2016 17:35:25 +0800 Subject: [PATCH 3/4] Fix PHP Fatal error: Call-time pass-by-reference has been removed since php version 5.4 Signed-off-by: Giam Teck Choon --- add_account.php | 2 +- add_alias.php | 2 +- user.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/add_account.php b/add_account.php index 4d98c5a..1c3321f 100644 --- a/add_account.php +++ b/add_account.php @@ -42,7 +42,7 @@ $form = array( ); if(isset($_SESSION['stored_forms'][$_GET['key']])) { - $form = array_merge($form, &$_SESSION['stored_forms'][$_GET['key']]); + $form = array_merge($form, $_SESSION['stored_forms'][$_GET['key']]); } else if(isset($_COOKIE['form'])) { $form = array_merge($form, unserialize($_COOKIE['form'])); diff --git a/add_alias.php b/add_alias.php index 9738763..68eeb1c 100644 --- a/add_alias.php +++ b/add_alias.php @@ -38,7 +38,7 @@ $form = array( ); if(isset($_SESSION['stored_forms'][$_GET['key']])) { - $form = array_merge($form, &$_SESSION['stored_forms'][$_GET['key']]); + $form = array_merge($form, $_SESSION['stored_forms'][$_GET['key']]); } else if(isset($_COOKIE['form'])) { $form = array_merge($form, unserialize($_COOKIE['form'])); diff --git a/user.php b/user.php index 3ef9e0b..7f3344e 100644 --- a/user.php +++ b/user.php @@ -37,7 +37,7 @@ $skel = array( /* if we were sent back by [perform.php], load from session */ if(isset($_SESSION['stored_forms'][$_GET['key']])) { - $form = &$_SESSION['stored_forms'][$_GET['key']]; + $form = $_SESSION['stored_forms'][$_GET['key']]; } else { $form = array(); } -- 1.8.3.1