• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP Znote change name error

cryptomeepo

Member
Joined
Aug 11, 2021
Messages
61
Solutions
4
Reaction score
14
Hello guys. I'm using Znote website on my server.

The thing is after upload it to my host DB I'm getting an error when user does not have the ticket to change character name.
System is working properly, but still I don't like this errors showing up.

(there is no error when I use my website locally. Only on my hoster database (spigu cloud).

print1.png

Line 96
PHP:
                // Check if player and account matches
                if ($session_user_id != $accountId || $session_user_id != $order['account_id']) {
                    $errors[] = 'Failed to sync your account. :|';
                }

Is there a way to disable the error?
 
Solution
PHP:
// Check if player and account matches
if ($order !== false) {
	if ($session_user_id != $accountId || $session_user_id != $order['account_id']) {
	    $errors[] = 'Failed to sync your account. :|';
	}
}
A little bump.
Pique La Liga GIF by FC Barcelona
 
PHP:
// Check if player and account matches
if ($order !== false) {
	if ($session_user_id != $accountId || $session_user_id != $order['account_id']) {
	    $errors[] = 'Failed to sync your account. :|';
	}
}
 
Solution
Back
Top