summaryrefslogtreecommitdiff
path: root/includes/pages/admin_active.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-30 17:08:20 +0200
committermsquare <msquare@notrademark.de>2016-09-30 17:08:20 +0200
commit3738d071f86aa5016ce326a009a278085b41fb48 (patch)
tree4471faa1cde6985cdef4aa214994977a1534d13f /includes/pages/admin_active.php
parent1debe567f5f9fdeff5a2afbaa4619992da67f437 (diff)
remove long array syntax
Diffstat (limited to 'includes/pages/admin_active.php')
-rw-r--r--includes/pages/admin_active.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php
index 733bd506..8d71b147 100644
--- a/includes/pages/admin_active.php
+++ b/includes/pages/admin_active.php
@@ -47,7 +47,7 @@ function admin_active() {
WHERE `User`.`Gekommen` = 1 AND `User`.`force_active`=0
GROUP BY `User`.`UID`
ORDER BY `force_active` DESC, `shift_length` DESC" . $limit);
- $user_nicks = array();
+ $user_nicks = [];
foreach ($users as $usr) {
sql_query("UPDATE `User` SET `Aktiv` = 1 WHERE `UID`='" . sql_escape($usr['UID']) . "'");
$user_nicks[] = User_Nick_render($usr);
@@ -139,7 +139,7 @@ function admin_active() {
$usr['force_active'] = glyph_bool($usr['force_active'] == 1);
$usr['tshirt'] = glyph_bool($usr['Tshirt'] == 1);
- $actions = array();
+ $actions = [];
if ($usr['Aktiv'] == 0) {
$actions[] = '<a href="' . page_link_to('admin_active') . '&amp;active=' . $usr['UID'] . ($show_all_shifts ? '&amp;show_all_shifts=' : '') . '&amp;search=' . $search . '">' . _("set active") . '</a>';
}