diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
commit | 0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 (patch) | |
tree | 1e7655eabd76bb981692f5d4f21cb1fc7be3e9cd /system/database/DB_result.php | |
parent | 5cf664748ee295867f593d7eb7991bd35fe8eca6 (diff) |
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
Diffstat (limited to 'system/database/DB_result.php')
-rw-r--r-- | system/database/DB_result.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php index b98d7a97b..d8d0d0d97 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.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
*
@@ -125,10 +125,10 @@ class CI_DB_result { */
function row($n = 0, $type = 'object')
{
- if (! is_numeric($n))
+ if ( ! is_numeric($n))
{
// We cache the row data for subsequent uses
- if (! is_array($this->row_data))
+ if ( ! is_array($this->row_data))
{
$this->row_data = $this->row_array(0);
}
@@ -156,7 +156,7 @@ class CI_DB_result { function set_row($key, $value = NULL)
{
// We cache the row data for subsequent uses
- if (! is_array($this->row_data))
+ if ( ! is_array($this->row_data))
{
$this->row_data = $this->row_array(0);
}
@@ -338,6 +338,6 @@ class CI_DB_result { }
// END DB_result class
- -/* End of file DB_result.php */ +
+/* End of file DB_result.php */
/* Location: ./system/database/DB_result.php */
\ No newline at end of file |