diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
commit | e965f8d04150fbd17ee1b5fcbca5ae85bbe6d6bd (patch) | |
tree | f610d047f1cdc830ffc34881f6ea6d26ef0e3983 /includes/model/EventConfig_model.php | |
parent | 91dafb19ec171e747d9976cf738606759bde3aae (diff) |
prohibit inline control structures on model and view
Diffstat (limited to 'includes/model/EventConfig_model.php')
-rw-r--r-- | includes/model/EventConfig_model.php | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |