Browse Source

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
pull/2/head
Claude 2 hours ago
parent
commit
8b061ae862
Failed to extract signature
  1. 2
      lib/controller/doCameraOperation.php

2
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'] );

Loading…
Cancel
Save