diff --git a/system/boot.php b/system/boot.php
index 586fdcd6..6284fbc9 100644
--- a/system/boot.php
+++ b/system/boot.php
@@ -116,7 +116,11 @@ try {
$ui->setConfigDir(File::pathFixer('ui/conf/'));
$ui->setCacheDir(File::pathFixer('ui/cache/'));
$ui->assign("error_title", "PHPNuxBill Crash");
- $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . ''); + if (isset($_SESSION['uid'])) { + $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . ''); + } $ui->display('router-error.tpl'); die(); } @@ -341,8 +345,11 @@ try { r2(U . 'dashboard', 'e', 'not found'); } } catch (Exception $e) { - $ui->assign("error_title", "PHPNuxBill Crash"); + if (isset($_SESSION['uid'])) { + r2(U , 'e', $e->getMessage()); + } $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . ''); + $ui->assign("error_title", "PHPNuxBill Crash"); $ui->display('router-error.tpl'); die(); }