Commit d9eabe7c authored by jonnybradley's avatar jonnybradley

[FIX] notices: Only variables should be passed by reference

parent 683a9475
......@@ -60,8 +60,10 @@ if ($prefs['connect_server_mode'] === 'y') {
}
}
$smarty->assign('cserver_search_text', $search_str);
$smarty->assignByRef('connect_stats', $connectlib->getReceivedDataStats());
$smarty->assignByRef('connect_recent', $connectlib->getMatchingConnections(empty($search_str) ? '*' : $search_str));
$receivedDataStats = $connectlib->getReceivedDataStats();
$smarty->assignByRef('connect_stats', $receivedDataStats);
$matchingConnections = $connectlib->getMatchingConnections(empty($search_str) ? '*' : $search_str);
$smarty->assignByRef('connect_recent', $matchingConnections);
} else {
$smarty->assign('connect_stats', null);
$smarty->assign('connect_recent', null);
......
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