Skip to content

Commit

Permalink
Issue #1798344: Fixed Flag integration causes error.
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCreamYou committed Sep 30, 2012
1 parent 0da8249 commit 2498b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submodules/fbss_flag/fbss_flag.module
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function fbss_flag_views_api() {
function fbss_flag_views_default_views_alter(&$views) {
// Add the "like" field to default Views.
$flag = flag_get_flag('like');
if (!$flag || !$flag->status) {
if (!$flag || (isset($flag->status) && !$flag->status)) {
return;
}
// This whole function only applies to default Views, not overridden ones.
Expand Down

0 comments on commit 2498b88

Please sign in to comment.