diff --git a/lib/controller/doCameraOperation.php b/lib/controller/doCameraOperation.php
index a52ae50..23d061d 100644
--- a/lib/controller/doCameraOperation.php
+++ b/lib/controller/doCameraOperation.php
@@ -306,9 +306,11 @@
$QS = "UPDATE cameras SET access_login='$EUser', access_pass='$EPass', auth_mode={$AUTH}, ptz_token='{$Eptz}', `status`=1 WHERE id={$CameraID}";
$DATABASE->Query( $QS, false );
} else {
+ $Data['status'] = 'error'; // the page shows msg only when status is not 'ok' (a failed check was silent)
$Data['msg'] = 'Camera was added.
However provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']';
};
} catch( Throwable $e ){ // PHP 8 Errors too: an uncaught Error ended the request without an answer
+ $Data['status'] = 'error';
$Data['msg'] = 'Provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']
'.htmlspecialchars( $e->getMessage() );
};
} else {