Various small updates [skip ci]

This commit is contained in:
James Cole
2014-08-06 07:06:45 +02:00
parent 2d0820873a
commit 5e809633e3
11 changed files with 100 additions and 47 deletions

View File

@@ -67,7 +67,7 @@ class ChartController extends BaseController
}
// loop and get array data.
$url = count($accounts) == 1
$url = count($accounts) == 1 && is_array($accounts)
? '<a href="' . route('accounts.show', [$account->id]) . '">View more</a>'
:
'<a href="' . route('accounts.index') . '">View more</a>';