"parent = id" is replaced with gravity check
This commit is contained in:
parent
bdfe47dcfd
commit
0acb5d4558
6 changed files with 12 additions and 9 deletions
|
@ -1287,7 +1287,7 @@ function photos_content(App $a)
|
|||
}
|
||||
|
||||
if (!empty($link_item['parent']) && !empty($link_item['uid'])) {
|
||||
$condition = ["`parent` = ? AND `parent` != `id`", $link_item['parent']];
|
||||
$condition = ["`parent` = ? AND `gravity` != ?", $link_item['parent'], GRAVITY_PARENT];
|
||||
$total = DBA::count('item', $condition);
|
||||
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue