From fe9a50c6c09c9fb7473d58f9f668a86e1d2f6826 Mon Sep 17 00:00:00 2001 From: flyskyko Date: Wed, 24 Aug 2011 06:52:37 +0000 Subject: [PATCH] Fixed a typo git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8858 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/security/Security.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/security/Security.class.php b/classes/security/Security.class.php index 23b2bf6f5..95fb66936 100644 --- a/classes/security/Security.class.php +++ b/classes/security/Security.class.php @@ -16,9 +16,9 @@ class Security * @constructor * @param $var Target context */ - function init($var = null) + function Security($var = null) { - $this->_targetVar($var); + $this->_targetVar = $var; } /** @@ -62,6 +62,8 @@ class Security } } } + + if (!$use_context) return $this->_targetVar; } /**