mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Modernise array syntax.
This commit is contained in:
parent
af0b9a239a
commit
3259b922b3
49 changed files with 312 additions and 312 deletions
|
@ -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)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue