]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Continued:
[mailer.git] / inc / libs / rallye_functions.php
index 07ef18a2a572804bd322d246fdaa2343b7c6a781..8a6ef504c3104fe78b8af54a63db7ab0bc107c8b 100644 (file)
@@ -260,9 +260,9 @@ ORDER BY
 
        // Load users
        $content = array(
-               'userid'  => array(),
-               'ref'     => array(),
-               'cpoints' => array()
+               'userid'  => [],
+               'ref'     => [],
+               'cpoints' => []
        );
 
        // Load all users
@@ -373,7 +373,7 @@ function sendRallyeNotification ($userid, $content) {
 }
 
 // Run this function only when a new member has confirmed his email address!
-function addUserToReferralRallye ($userid, $content = array()) {
+function addUserToReferralRallye ($userid, $content = []) {
        $add = '';
 
        // Updated extension?
@@ -490,7 +490,7 @@ function stopRallyeByResult ($result) {
 
        // Init array
        $count = '0';
-       $users = array();
+       $users = [];
        $content['start_time'] = generateDateTime($content['start_time'], 1);
        $content['end_time']   = generateDateTime($content['end_time']  , 1);
        $content['now_time']   = generateDateTime(time(), 1);
@@ -643,9 +643,9 @@ LIMIT %s",
 function getArrayFromReferralRallyePrices ($rallye) {
        // Init multi array
        $prices = array(
-               'level'  => array(),
-               'points' => array(),
-               'info'   => array()
+               'level'  => [],
+               'points' => [],
+               'info'   => []
        );
 
        // Load prices
@@ -684,9 +684,9 @@ function getArrayFromReferralRallyeUsers ($rallye) {
 
        // Init multi array
        $users = array(
-               'userid'  => array(),
-               'ref'     => array(),
-               'cpoints' => array(),
+               'userid'  => [],
+               'ref'     => [],
+               'cpoints' => [],
        );
 
        /*
@@ -886,13 +886,13 @@ WHERE
 function addReferralRallyeTemplateSelection ($name = 'template', $default = '') {
        // Init variables
        $OUT = '';
-       $ral = array();
+       $ral = [];
 
        // Check templates directory
        $basePath = sprintf('templates/%s/html/rallye/', getLanguage());
 
        // Read the directory
-       $templates = getArrayFromDirectory($basePath, 'rallye_', FALSE, TRUE, array(), '.tpl');
+       $templates = getArrayFromDirectory($basePath, 'rallye_', FALSE, TRUE, [], '.tpl');
 
        // And walk through
        foreach ($templates as $read) {