Compare instead of assign ...
This commit is contained in:
parent
c44f859edf
commit
3cf1f5e532
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ function delivery_run(&$argv, &$argc){
|
||||||
// When commenting too fast after delivery, a post wasn't recognized as top level post.
|
// When commenting too fast after delivery, a post wasn't recognized as top level post.
|
||||||
// The count then showed more than one entry. The additional check should help.
|
// The count then showed more than one entry. The additional check should help.
|
||||||
// The check for the "count" should be superfluous, but I'm not totally sure by now, so we keep it.
|
// The check for the "count" should be superfluous, but I'm not totally sure by now, so we keep it.
|
||||||
if ((($items[0]['id'] = $item_id) OR (count($items) == 1)) AND ($items[0]['uri'] === $items[0]['parent-uri'])) {
|
if ((($items[0]['id'] == $item_id) OR (count($items) == 1)) AND ($items[0]['uri'] === $items[0]['parent-uri'])) {
|
||||||
logger('delivery: top level post');
|
logger('delivery: top level post');
|
||||||
$top_level = true;
|
$top_level = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue