Commit 8e3d18ca authored by Sean O'Donnell's avatar Sean O'Donnell

Changes

parent bfc4dfab
......@@ -50,7 +50,7 @@ class ProcessProcesses implements ShouldQueue
foreach(json_decode($processes->processes) as $p)
{
// Check for which game we can use.
$gname = Game::where('name', $p->PName)->orWhere('name', $p->PWName)->first();
$gname = !empty($p->PWName)? Game::where('name', $p->PName)->orWhere('name', $p->PWName)->first() : Game::where('name', $p->PName)->first();
if($gname != null)
$games[] = $gname;
}
......
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