Skip to content

Commit

Permalink
undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Oct 27, 2021
1 parent 03f7607 commit 18ea6b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Api/WebSocket/SocketClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ protected function getData($global,$callback=null,$sub=[]){
//public

//$data=$global->get(strtolower($table));
$data=$global_local['public'][strtolower($v)];

$t=strtolower($v);
if(isset($global_local['public'][$t])) $data=$global_local['public'][$t];

if(empty($data)) continue;
$temp[$v]=$data;
}
Expand All @@ -172,8 +175,8 @@ protected function getData($global,$callback=null,$sub=[]){
}else{
//public
//$data=$global->get(strtolower($v));

$data=$global_local['public'][strtolower($v)];
$t=strtolower($v);
if(isset($global_local['public'][$t])) $data=$global_local['public'][$t];
}
if(empty($data)) continue;

Expand Down

0 comments on commit 18ea6b7

Please sign in to comment.