Only show location map if $user->userloc is valid
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return array (
|
||||
'app_version' => 'v2.0-112',
|
||||
'hash_version' => 'v2.0-112-gdac2747',
|
||||
'app_version' => 'v2.0-114',
|
||||
'hash_version' => 'v2.0-114-g06c9076',
|
||||
);
|
||||
@@ -410,7 +410,7 @@
|
||||
|
||||
<h6> @lang('admin/users/general.contact_user', array('name' => $user->first_name)) </h6>
|
||||
|
||||
@if ($user->location_id)
|
||||
@if ($user->userloc)
|
||||
<div class="col-md-12">
|
||||
<iframe width="300" height="133" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?&q={{{ $user->userloc->address }}},{{{ $user->userloc->city }}},{{{ strtoupper($user->userloc->state) }}},{{{ strtoupper($user->userloc->country) }}}&output=embed" style="float: none;"></iframe>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user