diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-21 23:07:20 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-21 23:07:20 +0100 |
commit | 8506d6d27e3b926521007064abcdcc2f69c6aa06 (patch) | |
tree | 4c0207871b3e9a831f8a619ff095ad71adb66f05 /includes/controller/shifts_controller.php | |
parent | 740026a9de6cba73c4e77aba78950d0a791b6b62 (diff) |
Refactoring: Config cleanup / moved to class
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r-- | includes/controller/shifts_controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php index 71459a10..a1801de6 100644 --- a/includes/controller/shifts_controller.php +++ b/includes/controller/shifts_controller.php @@ -329,9 +329,9 @@ function shift_next_controller() */ function shifts_json_export_all_controller() { - global $api_key; + $api_key = config('api_key'); - if ($api_key == '') { + if (empty($api_key)) { engelsystem_error('Config contains empty apikey.'); } |