Skip to content

Commit

Permalink
Adjusts order to required function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveratgithub committed Feb 24, 2024
1 parent 3b04167 commit ba941b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions www/includes/usersystem.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function __construct()

/** Grundsätzlich mal jeden zuerst als "Gast" anschauen */
$this->typ = USER_ALLE;
session_name(ZORG_SESSION_ID);
session_name(ZORG_SESSION_ID); // FIXME Cannot change session name when session is active

/** DEACTIVATED: Generelle Session Settings & Session (re-)Starten (wenn noch nicht aktiv) */
// if (session_status() === PHP_SESSION_NONE)
Expand Down Expand Up @@ -1831,10 +1831,10 @@ function get_and_create_user_files_dir($user_id)
* @since 1.0 `04.01.2024` `IneX` Method added
*
* @param integer $user_id
* @param string $game_name Name of Game: «addle» or chess. Default: addle
* @param string $game_name Name of Game: «addle» or «chess». Default: addle
* @return boolean
*/
function userPlays($game_name='addle', $user_id)
function userPlays($user_id, $game_name='addle')
{
global $db;

Expand Down
2 changes: 1 addition & 1 deletion www/profil.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
$htmlOutput .= '<img src="'.$user->userImage($user_id, 1).'">';//style="width: 100%;max-width: 100%;"

/** User Addle (nur wenn Viewer selber eingeloggt ist) */
if ($user->is_loggedin() && $user_id !== $user->id && $user->userPlays('addle', $user_id))
if ($user->is_loggedin() && $user_id !== $user->id && $user->userPlays($user_id, 'addle'))
{
$sidebarHtml .= '<h3>Addle</h3>
<form action="/addle.php?show=overview&do=new" method="post">
Expand Down

0 comments on commit ba941b3

Please sign in to comment.