summaryrefslogtreecommitdiff
path: root/includes/model/EventConfig_model.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/EventConfig_model.php')
-rw-r--r--includes/model/EventConfig_model.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/model/EventConfig_model.php b/includes/model/EventConfig_model.php
index 6d782ec4..766a5849 100644
--- a/includes/model/EventConfig_model.php
+++ b/includes/model/EventConfig_model.php
@@ -5,11 +5,13 @@ use Engelsystem\Database\DB;
/**
* Get event config.
*
- * @return array
+ * @return array|null
*/
function EventConfig()
{
- return DB::selectOne('SELECT * FROM `EventConfig` LIMIT 1');
+ $config = DB::selectOne('SELECT * FROM `EventConfig` LIMIT 1');
+
+ return empty($config) ? null : $config;
}
/**