From 581614349334a09580b80fa7e5369ac79ce325ab Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 4 Feb 2018 11:48:31 -0500 Subject: [PATCH] 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 --- lib/Cake/Model/Datasource/DboSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 9403708a9..40f682b17 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -470,7 +470,7 @@ class DboSource extends DataSource { $query = $this->_connection->prepare($sql, $prepareOptions); $query->setFetchMode(PDO::FETCH_LAZY); if (!$query->execute($params)) { - $this->_results = $query; + $this->_result = $query; $query->closeCursor(); return false; }