From ebbadd78df4000753b01d9f3d1bc1447844af3d8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Dec 2024 09:58:10 +0000 Subject: [PATCH] fixing small bug --- sys0-code/api/fetch_printer_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys0-code/api/fetch_printer_data.php b/sys0-code/api/fetch_printer_data.php index 0123d2e..e0ca97a 100644 --- a/sys0-code/api/fetch_printer_data.php +++ b/sys0-code/api/fetch_printer_data.php @@ -91,7 +91,7 @@ while (mysqli_stmt_fetch($stmt)) { $fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json"); $json = json_decode($fg, true); if($json['state']=="Printing" or $json['state']=="Printing from SD" or $system_status==99){ - $printer["printer_status"]="Von anderer Quelle aus gestartet."; + $printer["print_status"]="Von anderer Quelle aus gestartet."; $printer["progress"] = (int) $json['progress']['completion']; $printer["file"] = short_path($json["job"]["file"]["name"], 10, 10); $printer["full_file"]=$json["job"]["file"]["name"];