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/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 4511592..48a1432 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.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

  *

@@ -152,7 +152,7 @@
 	 */	

 	function trans_begin($test_mode = FALSE)

 	{

-		if (! $this->trans_enabled)

+		if ( ! $this->trans_enabled)

 		{

 			return TRUE;

 		}

@@ -181,7 +181,7 @@
 	 */	

 	function trans_commit()

 	{

-		if (! $this->trans_enabled)

+		if ( ! $this->trans_enabled)

 		{

 			return TRUE;

 		}

@@ -207,7 +207,7 @@
 	 */	

 	function trans_rollback()

 	{

-		if (! $this->trans_enabled)

+		if ( ! $this->trans_enabled)

 		{

 			return TRUE;

 		}

@@ -464,7 +464,7 @@
 	 */

 	function _from_tables($tables)

 	{

-		if (! is_array($tables))

+		if ( ! is_array($tables))

 		{

 			$tables = array($tables);

 		}

@@ -512,7 +512,7 @@
 			$valstr[] = $key." = ".$val;

 		}

 		

-		$limit = (!$limit) ? '' : ' LIMIT '.$limit;

+		$limit = ( ! $limit) ? '' : ' LIMIT '.$limit;

 		

 		$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';

 	

@@ -559,7 +559,7 @@
 	{

 		$conditions = '';

 

-		if (count($where) > 0 || count($like) > 0)

+		if (count($where) > 0 OR count($like) > 0)

 		{

 			$conditions = "\nWHERE ";

 			$conditions .= implode("\n", $this->ar_where);

@@ -571,7 +571,7 @@
 			$conditions .= implode("\n", $like);

 		}

 

-		$limit = (!$limit) ? '' : ' LIMIT '.$limit;

+		$limit = ( ! $limit) ? '' : ' LIMIT '.$limit;

 	

 		return "DELETE FROM ".$table.$conditions.$limit;

 	}

@@ -613,6 +613,6 @@
 }

 

 

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

+/* End of file odbc_driver.php */

 /* Location: ./system/database/drivers/odbc/odbc_driver.php */
\ No newline at end of file