projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d76aa8
)
Better check on object (use instanceof wherever possible)
author
Roland Haeder
<roland@mxchange.org>
Fri, 2 Sep 2016 19:08:48 +0000
(21:08 +0200)
committer
Roland Haeder
<roland@mxchange.org>
Fri, 2 Sep 2016 19:08:48 +0000
(21:08 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/Profile.php
patch
|
blob
|
history
diff --git
a/classes/Profile.php
b/classes/Profile.php
index 7aae98fb5f171e698ac73cb0dba13c8eab51e99d..74535a16bdcf65ae1e7c4816f6796f67e47fc4ed 100644
(file)
--- a/
classes/Profile.php
+++ b/
classes/Profile.php
@@
-1067,7
+1067,7
@@
class Profile extends Managed_DataObject
// Check if user has a personal setting for this
$prefs = User_location_prefs::getKV('user_id', $this->id);
- if (
!empty($prefs)
) {
+ if (
$prefs instanceof User_location_prefs
) {
$share = $prefs->share_location;
$prefs->free();
}