fixed errant syntax in changeset 53ace78c4b45, fixes #37
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 73cb6b8..64baaef 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1254,11 +1254,11 @@
 	 */	
 	function xss_clean($str)
 	{
-		if ( ! is_object($this->CI->security))
+		if ( ! isset($this->CI->security))
 		{
-			$this->CI->load('security');
+			$this->CI->load->library('security');
 		}
-		
+
 		return $this->CI->security->xss_clean($str);
 	}
 	
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index d7cf236..b3c625e 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -855,7 +855,7 @@
 
 		$CI =& get_instance();
 		
-		if ( ! is_object($CI->security))
+		if ( ! isset($CI->security))
 		{
 			$CI->load('security');
 		}
diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php
index ee65398..ff03a50 100644
--- a/system/libraries/Xmlrpc.php
+++ b/system/libraries/Xmlrpc.php
@@ -505,9 +505,9 @@
 	{
 		$CI =& get_instance();
 
-		if ($this->xss_clean && ! is_object($CI->security))
+		if ($this->xss_clean && ! isset($CI->security))
 		{
-			$CI->load('security');
+			$CI->load->library('security');
 		}
 
 		if ($array !== FALSE && is_array($array))
@@ -1124,9 +1124,9 @@
 	{
 		$CI =& get_instance();	
 
-		if ($this->xss_clean && ! is_object($CI->security))
+		if ($this->xss_clean && ! isset($CI->security))
 		{
-			$CI->load('security');
+			$CI->load->library('security');
 		}
 		
 		if ($array !== FALSE && is_array($array))