From 62083141460db75d13cfec0acd1fa0ea52722034 Mon Sep 17 00:00:00 2001
From: moglia <moglia@ispconfig3>
Date: Tue, 23 Feb 2010 17:08:46 -0500
Subject: [PATCH] Modified loadUserProfile function i discovered using mailuser interface from horfic after many tests and debugs functions recive a value iguals to userid field not sys_userid. I keep sysuser_id testing for compatibility issues no have any idea if this used in another place and added aditional userid test.  Tested all things and used auto-response with roundcube with this modifications all worked fine. More info see here: http://www.howtoforge.com/forums/showthread.php?t=38437&page=15

---
 interface/lib/classes/tpl_error.inc.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/interface/lib/classes/tpl_error.inc.php b/interface/lib/classes/tpl_error.inc.php
index 2f13988..29a9ae0 100644
--- a/interface/lib/classes/tpl_error.inc.php
+++ b/interface/lib/classes/tpl_error.inc.php
@@ -10,10 +10,10 @@
 //
 // $Id: error.php,v 1.1 2003/07/08 12:32:06 platinum Exp $
 
-define('FATAL', E_USER_ERROR);
+define('FATAL',   E_USER_ERROR);
 define('WARNING', E_USER_WARNING);
-define('NOTICE', E_USER_NOTICE);
-define('KILL',   -1); // used for killing inside parsing.
+define('NOTICE',  E_USER_NOTICE);
+define('KILL',    -1); // used for killing inside parsing.
 
 /**
  * Class is used by vlibTemplate.
@@ -36,7 +36,7 @@
 
         $error_codes = array(
                         'VT_ERROR_NOFILE'               => 'vlibTemplate Error: Template ('.$extra.') file not found.',
-                        'VT_ERROR_PARSE'                => 'vlibTemplate Error: Parse error!<br>To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug).',
+                        'VT_ERROR_PARSE'                => 'vlibTemplate Error: Parse error!<br />To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug).',
                         'VT_NOTICE_INVALID_TAG'         => 'vlibTemplate Notice: Invalid tag ('.$extra.').',
                         'VT_ERROR_INVALID_TAG'          => 'vlibTemplate Error: Invalid tag ('.$extra.'). To disable this you must turn of the STRICT option.',
                         'VT_NOTICE_INVALID_ATT'         => 'vlibTemplate Notice: Invalid attribute ('.$extra.').',

--
Gitblit v1.9.1