Skip to content

Commit

Permalink
Merge pull request #9709 from seamuslee001/CRM-19907
Browse files Browse the repository at this point in the history
CRM-19907 Fix error where show events setting is NULL
  • Loading branch information
kurund authored Jan 23, 2017
2 parents 2e0b9fb + fff710f commit 3adb3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Event/BAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public static function getEventSummary() {
// Get the event summary display preferences
$show_max_events = Civi::settings()->get('show_events');
// show all events if show_events is set to a negative value
if ($show_max_events >= 0) {
if (isset($show_max_events) && $show_max_events >= 0) {
$event_summary_limit = "LIMIT 0, $show_max_events";
}
else {
Expand Down

0 comments on commit 3adb3d2

Please sign in to comment.