Fix issues found by static analysis (#878)

This commit is contained in:
Matthew Brown
2018-03-04 12:23:33 -05:00
committed by Alexis Saettler
parent af59fa2b7e
commit 749caa2c03
25 changed files with 37 additions and 23 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ class ContactsController extends Controller
}
$date_flag = false;
$date_sort = null;
if (str_contains($sort, 'lastactivitydate')) {
$date_sort = str_after($sort, 'lastactivitydate');
@@ -463,7 +464,7 @@ class ContactsController extends Controller
public function vCard(Contact $contact)
{
if (config('app.debug')) {
\Debugbar::disable();
\Barryvdh\Debugbar\Facade::disable();
}
$vcard = VCardHelper::prepareVCard($contact);