Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/helpers/array_helper.php b/system/helpers/array_helper.php
index 837e41f..faa9037 100644
--- a/system/helpers/array_helper.php
+++ b/system/helpers/array_helper.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -39,11 +39,11 @@
  * @param	mixed

  * @return	mixed	depends on what the array contains

  */	

-if (! function_exists('element'))

+if ( ! function_exists('element'))

 {

 	function element($item, $array, $default = FALSE)

 	{

-		if (! isset($array[$item]) OR $array[$item] == "")

+		if ( ! isset($array[$item]) OR $array[$item] == "")

 		{

 			return $default;

 		}

@@ -61,11 +61,11 @@
  * @param	array

  * @return	mixed	depends on what the array contains

  */	

-if (! function_exists('random_element'))

+if ( ! function_exists('random_element'))

 {

 	function random_element($array)

 	{

-		if (! is_array($array))

+		if ( ! is_array($array))

 		{

 			return $array;

 		}

@@ -73,6 +73,6 @@
 	}	

 }

 

-
-/* End of file array_helper.php */
+

+/* End of file array_helper.php */

 /* Location: ./system/helpers/array_helper.php */
\ No newline at end of file