From 849e1e1d67757059026effdf189fb7ecdb853dce Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 19 Feb 2024 21:44:19 +0200 Subject: [PATCH] update condition --- src/controller/room.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index 418cd30..ed2d63b 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -585,17 +585,15 @@ class Room { if ($post['txid'] == $quote) { - $quote = $this->_quote( - $this->_post( - $namespace, - $post, - $raw, - 'value' - ), - true - ); - - break; + if ($_post = $this->_post($namespace, $post, $raw, 'value')) + { + $quote = $this->_quote( + $_post, + true + ); + + break; + } } }