mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Reversing order of short cut checks. Fixes issues in PHP 5.1.x. Fixes #351
This commit is contained in:
parent
06109a2eed
commit
fc499ac48f
1 changed files with 3 additions and 3 deletions
|
@ -380,12 +380,12 @@ class DboSource extends DataSource {
|
||||||
* @return string SQL field
|
* @return string SQL field
|
||||||
*/
|
*/
|
||||||
function name($data) {
|
function name($data) {
|
||||||
if ($data == '*') {
|
|
||||||
return '*';
|
|
||||||
}
|
|
||||||
if (is_object($data) && isset($data->type)) {
|
if (is_object($data) && isset($data->type)) {
|
||||||
return $data->value;
|
return $data->value;
|
||||||
}
|
}
|
||||||
|
if ($data == '*') {
|
||||||
|
return '*';
|
||||||
|
}
|
||||||
$array = is_array($data);
|
$array = is_array($data);
|
||||||
$data = (array)$data;
|
$data = (array)$data;
|
||||||
$count = count($data);
|
$count = count($data);
|
||||||
|
|
Loading…
Reference in a new issue