Adding fix to Test Suite.

Closes Ticket #279

Merging fixes to trunk

Revision: [1826]
Added fix for custom view classes

Revision: [1825]
Adding fix for Ticket #286

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1827 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-01-17 22:13:15 +00:00
parent afb97fc54d
commit 58e7bbc224
3 changed files with 14 additions and 2 deletions

View file

@ -6,4 +6,4 @@
// +---------------------------------------------------------------------------------------------------+ //
///////////////////////////////////////////////////////////////////////////////////////////////////////////
0.10.6.1820 RC 1
0.10.6.1827 RC 1

View file

@ -368,6 +368,10 @@ class Controller extends Object
$viewClass = $this->view.'View';
loadView($this->view);
}
if($this->view != 'View')
{
$viewClass = $this->view.'View';
}
$this->_viewClass =& new $viewClass($this);
if(!empty($this->modelNames))
{

View file

@ -285,7 +285,15 @@ class DboMysql extends DboSource
{
$data = mysql_real_escape_string($data, $this->connection);
}
return "'" . $data . "'";
if(!empty($data))
{
$return = "'" . $data . "'";
}
else
{
$return = "NULL";
}
return $return;
}
/**