mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Replacing "&&" by "AND" (ticket #2784)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5293 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
430e11004d
commit
f5c564f401
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class AclNode extends AppModel {
|
|||
$j = $i - 1;
|
||||
$k = $i + 1;
|
||||
$query .= "LEFT JOIN {$prefix}{$table} AS {$type}{$k} ";
|
||||
$query .= "ON {$type}{$k}.lft > {$type}{$i}.lft && {$type}{$k}.rght < {$type}{$i}.rght ";
|
||||
$query .= "ON {$type}{$k}.lft > {$type}{$i}.lft AND {$type}{$k}.rght < {$type}{$i}.rght ";
|
||||
$query .= "AND {$type}{$k}.alias = " . $db->value($alias) . " ";
|
||||
}
|
||||
$result = $this->query("{$query} WHERE {$type}.lft <= {$type}0.lft AND {$type}.rght >= {$type}0.rght ORDER BY {$type}.lft DESC", $this->cacheQueries);
|
||||
|
|
Loading…
Add table
Reference in a new issue