mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-01 07:09:46 +00:00
Trimming whitespaces.
This commit is contained in:
parent
5ab5197090
commit
9e8fc96bf8
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ class DboSource extends DataSource {
|
||||||
* @var boolean.
|
* @var boolean.
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public $cacheMethods = true ;
|
public $cacheMethods = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print full query debug info?
|
* Print full query debug info?
|
||||||
|
@ -332,7 +332,7 @@ class DboSource extends DataSource {
|
||||||
}
|
}
|
||||||
} elseif (in_array($data, array('{$__cakeID__$}', '{$__cakeForeignKey__$}'), true)) {
|
} elseif (in_array($data, array('{$__cakeID__$}', '{$__cakeForeignKey__$}'), true)) {
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($data === null || (is_array($data) && empty($data))) {
|
if ($data === null || (is_array($data) && empty($data))) {
|
||||||
return 'NULL';
|
return 'NULL';
|
||||||
|
@ -482,7 +482,7 @@ class DboSource extends DataSource {
|
||||||
$this->error = $e->getMessage();
|
$this->error = $e->getMessage();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue