fix undefined variables (psalm)

feature-php-crypt-prefix
David Goodwin 4 years ago
parent 3b1fffdf22
commit 8754af58cb

@ -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)) {

@ -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 == "") {

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

@ -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 = '';

Loading…
Cancel
Save