]> git.mxchange.org Git - friendica.git/commitdiff
Compare instead of assign ...
authorMichael <heluecht@pirati.ca>
Tue, 10 Jan 2017 10:23:51 +0000 (10:23 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 10 Jan 2017 10:23:51 +0000 (10:23 +0000)
include/delivery.php

index f1e570764d157a3128ca0a0d0b342cf5c2bc9299..06253fba8a9638c78f25852fbd7f8b876d13d36b 100644 (file)
@@ -174,7 +174,7 @@ function delivery_run(&$argv, &$argc){
                        // 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 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');
                                $top_level = true;
                        }