Only show location map if $user->userloc is valid

This commit is contained in:
snipe
2015-09-15 02:59:19 -07:00
parent 911e9092f9
commit 611da2ffbd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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',
);
+1 -1
View File
@@ -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?&amp;q={{{ $user->userloc->address }}},{{{ $user->userloc->city }}},{{{ strtoupper($user->userloc->state) }}},{{{ strtoupper($user->userloc->country) }}}&amp;output=embed" style="float: none;"></iframe>
</div>