1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Modernise array syntax.

This commit is contained in:
Caleb Mazalevskis 2023-02-15 23:22:37 +08:00
parent af0b9a239a
commit 3259b922b3
No known key found for this signature in database
GPG key ID: 082E6BC1046FAB95
49 changed files with 312 additions and 312 deletions

View file

@ -21,7 +21,7 @@ if ($config->getAuthCanViewChart() == 0) {
}
} elseif (User::isLogged()) {
$users_id = User::getId();
}
}
} elseif ($config->getAuthCanViewChart() == 1) {
if ((!empty($_SESSION['user']['canViewChart']))||(User::isAdmin())) {
if(empty($_REQUEST['users_id'])){
@ -35,7 +35,7 @@ if ($config->getAuthCanViewChart() == 0) {
$obj = new stdClass();
$obj->data = array();
$obj->data = [];
if(empty($users_id)){