Skip to content
This repository
Browse code

Fix a bug introduced when generating partial compatibility between 1.3

and 2.0 Cookies, where an empty valued key caused a PHP notice. Also,
harden tests. Completes the fix for #2131.
  • Loading branch information...
commit 48d3fc72f13fe3497f73c7a4c8339d940d664355 1 parent 27392bf
Ber Clausen authored January 20, 2012
4  cake/libs/controller/components/cookie.php
@@ -464,11 +464,11 @@ function __implode($array) {
2  cake/libs/model/behaviors/translate.php
@@ -110,7 +110,7 @@ function beforeFind(&$model, $query) {
110 110
 		}
111 111
 		$db =& ConnectionManager::getDataSource($model->useDbConfig);
112 112
 		$RuntimeModel =& $this->translateModel($model);
113  
-	
  113
+
114 114
 		if (!empty($RuntimeModel->tablePrefix)) {
115 115
 			$tablePrefix = $RuntimeModel->tablePrefix;
116 116
 		} else {
11  cake/tests/cases/libs/controller/components/cookie.test.php
@@ -487,9 +487,16 @@ function testForwardsCompatibility() {

0 notes on commit 48d3fc7

Please sign in to comment.
Something went wrong with that request. Please try again.