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 {
* @param mixed $state
*/
static public function ToState($state) {
if (!empty($state->GetReplyBackState())) {
$rbs = $state->GetReplyBackState();
if (!empty($rbs)) {
return serialize($state);
}
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