fixing small bug

This commit is contained in:
root
2024-12-22 09:58:10 +00:00
parent 107dd60cd8
commit ebbadd78df

View File

@@ -91,7 +91,7 @@ while (mysqli_stmt_fetch($stmt)) {
$fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json"); $fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json");
$json = json_decode($fg, true); $json = json_decode($fg, true);
if($json['state']=="Printing" or $json['state']=="Printing from SD" or $system_status==99){ 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["progress"] = (int) $json['progress']['completion'];
$printer["file"] = short_path($json["job"]["file"]["name"], 10, 10); $printer["file"] = short_path($json["job"]["file"]["name"], 10, 10);
$printer["full_file"]=$json["job"]["file"]["name"]; $printer["full_file"]=$json["job"]["file"]["name"];