replaced isset() with array_key_exists() in row() to allow retrieval of individual fields with MySQL NULL values
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 7d50979..6461431 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -133,7 +133,8 @@
$this->row_data = $this->row_array(0);
}
- if (isset($this->row_data[$n]))
+ // array_key_exists() instead of isset() to allow for MySQL NULL values
+ if (array_key_exists($n, $this->row_data)))
{
return $this->row_data[$n];
}