From f9c0fc6eb74440c761b9b12dd1684a1c1e52213c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 12 Apr 2012 14:03:34 +0400 Subject: [PATCH] register: include functions.php before checking for action parameter to set proper error_reporting (fixes #448) --- register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/register.php b/register.php index 97cea47cb..fbcea845d 100644 --- a/register.php +++ b/register.php @@ -9,14 +9,14 @@ require_once 'lib/phpmailer/class.phpmailer.php'; - $action = $_REQUEST["action"]; - require_once "functions.php"; require_once "sessions.php"; require_once "sanity_check.php"; require_once "config.php"; require_once "db.php"; + $action = $_REQUEST["action"]; + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (!init_connection($link)) return;