From 8b061ae862a7dfbec49c7119cf45f1d199a7ce43 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:28:35 +0000 Subject: [PATCH] doCameraOperation: CMD 3 without PR parameter = ONVIF, no undefined key warning A displayed PHP warning ends up in front of the JSON reply. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16 --- lib/controller/doCameraOperation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/doCameraOperation.php b/lib/controller/doCameraOperation.php index 252ca26..a52ae50 100644 --- a/lib/controller/doCameraOperation.php +++ b/lib/controller/doCameraOperation.php @@ -92,7 +92,7 @@ break; }; case 3:{ - if( intval( $_POST['PR'] ) == 0 ){ + if( intval( isset( $_POST['PR'] ) ? $_POST['PR'] : 0 ) == 0 ){ // PR missing = ONVIF (an undefined key warning broke the JSON) // Checkup Onvif Camera Credentials require_once('../php/onvif/toto.php'); $EUser = $DATABASE->escape( $_POST['UU'] );