]> git.mxchange.org Git - friendica.git/commitdiff
Simplyfying code
authorMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 05:08:29 +0000 (05:08 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 05:08:29 +0000 (05:08 +0000)
src/App.php
src/Module/Contact.php

index 9e2bb0d22f033448f611f2751ee0b8a729c8f126..df15bf095ec681b494f01551495b0b518342f467 100644 (file)
@@ -617,7 +617,7 @@ class App
                                $this->baseURL->redirect('search');
                        }
 
-                       // Initialize module that can set the current theme in the init() method, either directly or via App->profile_owner
+                       // Initialize module that can set the current theme in the init() method, either directly or via App->setProfileOwner
                        $page['page_title'] = $moduleName;
 
                        if (!$this->mode->isInstall() && !$this->mode->has(App\Mode::MAINTENANCEDISABLED)) {
index 36cc11de411e21c2caeeae656a0b5338cee4f661..6aa602af2f0d65ced426e109a81f5469c2af648b 100644 (file)
@@ -445,7 +445,7 @@ class Contact extends BaseModule
 
                $_SESSION['return_path'] = DI::args()->getQueryString();
 
-               if (!empty($contact) && is_array($contact)) {
+               if (!empty($contact)) {
                        DI::page()['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
                                '$baseurl' => DI::baseUrl()->get(true),
                        ]);