mirror of
https://github.com/pi-hole/web.git
synced 2026-10-05 15:41:40 +01:00
Update settings.php
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
This commit is contained in:
1 parent
160f873672
commit
f5d8ca9843
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ $piholeFTLConf = piholeFTLConfig();
|
||||
|
||||
// Handling of PHP internal errors
|
||||
$last_error = error_get_last();
|
||||
if($last_error && ($last_error["type"] === E_WARNING || $last_error["type"] === E_ERROR))
|
||||
if(isset($last_error) && ($last_error["type"] === E_WARNING || $last_error["type"] === E_ERROR))
|
||||
{
|
||||
$error .= "There was a problem applying your settings.<br>Debugging information:<br>PHP error (".htmlspecialchars($last_error["type"])."): ".htmlspecialchars($last_error["message"])." in ".htmlspecialchars($last_error["file"]).":".htmlspecialchars($last_error["line"]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user