From 3341921ab4d5c73a0b95b82132fc677f654f73ae Mon Sep 17 00:00:00 2001 From: Hunter Perrin Date: Tue, 24 Mar 2015 15:12:56 -0700 Subject: [PATCH] Fixed can't pass by reference bug. --- src/MessageHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MessageHandler.php b/src/MessageHandler.php index ad12fa6..ce0296d 100644 --- a/src/MessageHandler.php +++ b/src/MessageHandler.php @@ -192,8 +192,9 @@ public function onMessage(WebSocketTransportInterface $user, WebSocketMessageInt $entityData = $data['entity']['data']; $entityData['cdate'] = $data['entity']['cdate']; $entityData['mdate'] = $data['entity']['mdate']; + $entitySData = []; - if ($options['class'] === $data['entity']['class'] && \Nymph\Nymph::checkData($entityData, [], $selectors, $data['guid'], $data['entity']['tags'])) { + if ($options['class'] === $data['entity']['class'] && \Nymph\Nymph::checkData($entityData, $entitySData, $selectors, $data['guid'], $data['entity']['tags'])) { // Update currents list. $oldCurrents = $curClients['current']; $guidArgs = unserialize($curQuery);