Skip to content

Commit f0343e9

Browse files
committed
Update vcard-form.blade.php
1 parent dbab3a6 commit f0343e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/components/pageitems/vcard-form.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="vcard">Vcard</option></select>
44

55
@php
6-
// Decode the JSON string to a PHP object
6+
try {
77
$data = json_decode($link_url);
88
9-
// Assign the values to the variables
109
$prefix = $data->prefix;
1110
$firstName = $data->first_name;
1211
$middleName = $data->middle_name;
@@ -34,7 +33,8 @@
3433
$workAddressState = $data->work_address_state;
3534
$workAddressZip = $data->work_address_zip;
3635
$workAddressCountry = $data->work_address_country;
37-
36+
}
37+
catch (exception $e) {}
3838
@endphp
3939

4040
<label for='title' class='form-label'>Custom Title</label>

0 commit comments

Comments
 (0)