Commit 028d66d8 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-905 Assign to variable before checking with empty().

Released under the Affero GNU General Public License (AGPL) version 3.
parent c217f909
...@@ -72,7 +72,8 @@ class ReplyBackState extends StateObject { ...@@ -72,7 +72,8 @@ class ReplyBackState extends StateObject {
* @param mixed $state * @param mixed $state
*/ */
static public function ToState($state) { static public function ToState($state) {
if (!empty($state->GetReplyBackState())) { $rbs = $state->GetReplyBackState();
if (!empty($rbs)) {
return serialize($state); return serialize($state);
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment