]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
Reintroduce own posts in network list
[friendica.git] / mod / message.php
index e7d8a2080e7272eafe63395fb948172065581d17..e9bfc076bb50e9ff42dcd5969a7610c1161cf48a 100644 (file)
@@ -7,7 +7,7 @@ use Friendica\App;
 use Friendica\Content\Nav;
 use Friendica\Content\Smilies;
 use Friendica\Content\Text\BBCode;
-use Friendica\Core\Acl;
+use Friendica\Core\ACL;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
@@ -207,7 +207,7 @@ function message_content(App $a)
                        '$linkurl' => L10n::t('Please enter a link URL:')
                ]);
 
-               $preselect = isset($a->argv[2]) ? [$a->argv[2]] : false;
+               $preselect = isset($a->argv[2]) ? [$a->argv[2]] : [];
 
                $prename = $preurl = $preid = '';
 
@@ -243,7 +243,7 @@ function message_content(App $a)
                $prefill = $preselect ? $prename : '';
 
                // the ugly select box
-               $select = Acl::getMessageContactSelectHTML('messageto', 'message-to-select', $preselect, 4, 10);
+               $select = ACL::getMessageContactSelectHTML('messageto', 'message-to-select', $preselect, 4, 10);
 
                $tpl = get_markup_template('prv_message.tpl');
                $o .= replace_macros($tpl, [