diff --git a/README.md b/README.md
index 662d994c..418dc625 100644
--- a/README.md
+++ b/README.md
@@ -27,14 +27,15 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst
composer dump-autoload --optimize
```
to install the engelsystem
- * The webserver must have write access to the 'import' directory and read access for all other directories
- * The webserver must point to the public directory.
+ * The webserver must have write access to the ```import``` directory and read access for all other directories
+ * The webserver must point to the ```public``` directory.
+ * The webserver must read the ```.htaccess``` file and ```mod_rewrite``` must be enabled
* Recommended: Directory Listing should be disabled.
* There must a be MySQL database created with a user who has full rights to that database.
- * It must be created by the db/install.sql and db/update.sql files.
- * If necessary, create a config/config.php to override values from config/config.default.php.
- * In the browser, login with credentials admin:asdfasdf and change the password.
+ * It must be created by the ```db/install.sql``` and ```db/update.sql``` files.
+ * If necessary, create a ```config/config.php``` to override values from ```config/config.default.php```.
+ * In the browser, login with credentials ```admin```:```asdfasdf``` and change the password.
Engelsystem can now be used.
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php
index 5930595e..73a5d29f 100644
--- a/includes/controller/shifts_controller.php
+++ b/includes/controller/shifts_controller.php
@@ -345,32 +345,6 @@ function shift_next_controller()
redirect(page_link_to('user_shifts'));
}
-/**
- * Export all shifts using api-key.
- */
-function shifts_json_export_all_controller()
-{
- $api_key = config('api_key');
- $request = request();
-
- if (empty($api_key)) {
- engelsystem_error('Config contains empty apikey.');
- }
-
- if (!$request->has('api_key')) {
- engelsystem_error('Missing parameter api_key.');
- }
-
- if ($request->input('api_key') != $api_key) {
- engelsystem_error('Invalid api_key.');
- }
-
- $shifts_source = Shifts();
-
- header('Content-Type: application/json; charset=utf-8');
- raw_output(json_encode($shifts_source));
-}
-
/**
* Export filtered shifts via JSON.
* (Like iCal Export or shifts view)
diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php
index 48e2c91f..e925bfd4 100644
--- a/includes/pages/admin_arrive.php
+++ b/includes/pages/admin_arrive.php
@@ -21,6 +21,7 @@ function admin_arrive()
if ($request->has('search')) {
$search = strip_request_item('search');
+ $search = trim($search);
}
if ($request->has('reset') && preg_match('/^\d+$/', $request->input('reset'))) {
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 81b405b1..f3ffd501 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -332,7 +332,7 @@ function make_select($items, $selected, $name, $title = null, $additionalButtons
. (in_array($i['id'], $selected) ? ' checked="checked"' : '')
. ' > ' . $i['name'] . ''
. (!isset($i['enabled']) || $i['enabled'] ? '' : glyph('lock'))
- . '
';
+ . '';
}
$html .= '
%task_notice%
%task_notice%