summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-28 13:50:51 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-28 13:50:51 +0200
commit6781a5f64dc0c75110f3100eb281276f00fe9dbf (patch)
tree8e4db92c0a8211c2e5ce1fd879e69b60a1341215 /system/database
parent6202a3c822a7b68040de2c5e0528bc1ec1c50758 (diff)
A replace array_key_exists() with isset()
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 553f70c45..d3359e13e 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -755,11 +755,11 @@ abstract class CI_DB_driver {
// Do we know from which column to get the table name?
if ( ! isset($key))
{
- if (array_key_exists('table_name', $row))
+ if (isset($row['table_name']))
{
$key = 'table_name';
}
- elseif (array_key_exists('TABLE_NAME', $row))
+ elseif (isset($row['TABLE_NAME']))
{
$key = 'TABLE_NAME';
}
@@ -827,11 +827,11 @@ abstract class CI_DB_driver {
// Do we know from where to get the column's name?
if ( ! isset($key))
{
- if (array_key_exists('column_name', $row))
+ if (isset($row['column_name']))
{
$key = 'column_name';
}
- elseif (array_key_exists('COLUMN_NAME', $row))
+ elseif (isset($row['COLUMN_NAME']))
{
$key = 'COLUMN_NAME';
}