From fff710f50ce52cc8169c6bd1be1d72a268e490fb Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 23 Jan 2017 02:34:56 +0000 Subject: [PATCH] CRM-19907 Fix error where show events setting is NULL --- CRM/Event/BAO/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 0be1b5cb7449..c1e9c35a28ef 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -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 {