Skip to content
Browse files

Fix usage of non-existant property.

Use the declared `_result` property instead. I would normally add
a test, but getting to this path requires a query to fail which is not
simple to simulate in the test harness.

Fixes #11615
  • Loading branch information...
markstory committed Feb 4, 2018
1 parent 49725a8 commit 581614349334a09580b80fa7e5369ac79ce325ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/DboSource.php
@@ -470,7 +470,7 @@ protected function _execute($sql, $params = array(), $prepareOptions = array())
$query = $this->_connection->prepare($sql, $prepareOptions);
if (!$query->execute($params)) {
$this->_results = $query;
$this->_result = $query;
return false;

0 comments on commit 5816143

Please sign in to comment.
You can’t perform that action at this time.