Also fix dashboard home problem on Admin page

This commit is contained in:
Lncvrt committed 2025-03-03 16:41:37 -07:00
1 parent f33c3ec72c
commit f020fec51e
1 file changed
+2 -2
+2 -2
View File
@@ -52,12 +52,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$sql = "SELECT value FROM settings WHERE id = 1";
$result = $conn->query($sql);
$row = $result->fetch_assoc();
$news = base64_decode($row['value']);
$news = base64_decode($row['value'] ?? '');
$sql = "SELECT value FROM settings WHERE id = 2";
$result = $conn->query($sql);
$row = $result->fetch_assoc();
$motd = base64_decode($row['value']);
$motd = base64_decode($row['value'] ?? '');
$totalSize = 0;
$uploadCount = 0;