]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Continued:
[friendica.git] / src / Object / Post.php
index f47efbecd24ac4ffbe4f5da53600f97f83b2b25a..820730a32b9e01a4942af6b24c3eeca6a82d3eb3 100644 (file)
@@ -78,7 +78,7 @@ class Post extends BaseObject
                }
 
                // Prepare the children
-               if (count($data['children'])) {
+               if (!empty($data['children'])) {
                        foreach ($data['children'] as $item) {
                                // Only add will be displayed
                                if ($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
@@ -317,7 +317,7 @@ class Post extends BaseObject
                $text_e       = strip_tags($body);
                $name_e       = $profile_name;
 
-               if (!empty($item['content-warning']) && PConfig::get(local_user(), 'social', 'disable_cw', false)) {
+               if (!empty($item['content-warning']) && PConfig::get(local_user(), 'system', 'disable_cw', false)) {
                        $title_e = ucfirst($item['content-warning']);
                } else {
                        $title_e = $item['title'];