Skip to content

Commit

Permalink
Fix #3095
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Jun 9, 2014
1 parent 37df6fa commit 79fdb90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/database/drivers/pdo/pdo_driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function _execute($sql)
$sql = $this->_prep_query($sql);
$result_id = $this->conn_id->prepare($sql);

if (is_object($result_id) && ($result = $result_id->execute()))
if (is_object($result_id) && $result_id->execute())
{
if (is_numeric(stripos($sql, 'SELECT')))
{
Expand All @@ -205,10 +205,10 @@ function _execute($sql)
else
{
$this->affect_rows = 0;
$result = FALSE;
return FALSE;
}

return $result;
return $result_id;
}

// --------------------------------------------------------------------
Expand Down

0 comments on commit 79fdb90

Please sign in to comment.