From e965f8d04150fbd17ee1b5fcbca5ae85bbe6d6bd Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 29 Sep 2016 11:18:17 +0200 Subject: prohibit inline control structures on model and view --- includes/model/EventConfig_model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes/model/EventConfig_model.php') diff --git a/includes/model/EventConfig_model.php b/includes/model/EventConfig_model.php index 0529c286..ac8d5e72 100644 --- a/includes/model/EventConfig_model.php +++ b/includes/model/EventConfig_model.php @@ -5,10 +5,12 @@ */ function EventConfig() { $event_config = sql_select("SELECT * FROM `EventConfig` LIMIT 1"); - if ($event_config === false) + if ($event_config === false) { return false; - if (count($event_config) > 0) + } + if (count($event_config) > 0) { return $event_config[0]; + } return null; } -- cgit v1.2.3-70-g09d2