0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

fix undefined variables (psalm)

This commit is contained in:
David Goodwin 2020-03-12 20:45:51 +00:00
parent 3b1fffdf22
commit 8754af58cb
4 changed files with 10 additions and 1 deletions

View File

@ -53,6 +53,7 @@ if (!is_file("$incpath/config.inc.php")) {
global $CONF;
require_once("$incpath/config.inc.php");
@ -64,6 +65,7 @@ if (isset($CONF['configured']) && !defined('PHPUNIT_TEST')) {
Config::write($CONF);
$PALANG = [];
require_once("$incpath/languages/language.php");
require_once("$incpath/functions.inc.php");
if (extension_loaded('Phar') && ( version_compare(PHP_VERSION, '7.0.0') < 0)) {

View File

@ -37,7 +37,7 @@ if (!preg_match('/^[a-z]+$/', $table) || !file_exists(dirname(__FILE__) . "/../m
}
$error = 0;
$values = [];
$edit = safepost('edit', safeget('edit'));
$new = 0;
if ($edit == "") {

View File

@ -86,6 +86,8 @@ $_SESSION['prefill:aliasdomain:target_domain'] = $fDomain;
$_SESSION['list-virtual:limit'] = $fDisplay;
$tAliasDomains = [];
$aliasdomain_data = [];
#
# alias domain

View File

@ -75,6 +75,11 @@ foreach (array_keys($choice_of_reply) as $key) {
$choice_of_reply[$key] = Config::Lang($choice_of_reply[$key]);
}
$tUseremail = null;
$tInterval_Time = null;
$tBody = null;
$tSubject = null;
if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tSubject = '';
$tBody = '';