summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers/pdo')
-rw-r--r--system/database/drivers/pdo/pdo_result.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index 322da8d37..b45e74195 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -56,9 +56,9 @@ class CI_DB_pdo_result extends CI_DB_result {
{
return $this->num_rows = count($this->result_object);
}
- elseif (($this->num_rows = $this->result_id->rowCount()) > 0)
+ elseif (($num_rows = $this->result_id->rowCount()) > 0)
{
- return $this->num_rows;
+ return $this->num_rows = $num_rows;
}
return $this->num_rows = count($this->result_array());