Merge pull request #1326 from pi-hole/tweak/notAnError

Remove an error log output that was presumably leftover from debugging
This commit is contained in:
DL6ER
2020-05-25 20:00:40 +02:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -36,9 +36,13 @@ function connectFTL($address, $port=4711)
{
$config = piholeFTLConfig();
// Read port
$portfile = file_get_contents($config["PORTFILE"]);
if(is_numeric($portfile))
$port = intval($portfile);
$portfileName = isset($config['PORTFILE']) ? $config['PORTFILE'] : '';
if ($portfileName != '')
{
$portfileContents = file_get_contents($portfileName);
if(is_numeric($portfileContents))
$port = intval($portfileContents);
}
}
// Open Internet socket connection
@@ -46,6 +50,7 @@ function connectFTL($address, $port=4711)
return $socket;
}
function sendRequestFTL($requestin)
{
global $socket;

View File

@@ -42,7 +42,6 @@ $theme = $available_themes[$webtheme][2];
$checkbox_theme_name = $available_themes[$webtheme][3];
$checkbox_theme_variant = $available_themes[$webtheme][4];
error_log(print_r($available_themes,true));
function theme_selection() {
global $available_themes, $webtheme;
foreach ($available_themes as $key => $value) {