mirror of
				https://gitlab.com/ceda_ei/Zeeth-Naaw-Bot
				synced 2025-10-30 18:00:05 +01:00 
			
		
		
		
	Fix bug - new user not added to db.
Changed chat_id to id
This commit is contained in:
		| @@ -48,7 +48,7 @@ function new_member() { | |||||||
|       continue; |       continue; | ||||||
|     } |     } | ||||||
|     $username = $member->{"username"}; |     $username = $member->{"username"}; | ||||||
|     $user_id = $member->{"chat_id"}; |     $user_id = $member->{"id"}; | ||||||
|     $query = "INSERT INTO users (user_id, username, follows) values($user_id, '$username', -1);"; |     $query = "INSERT INTO users (user_id, username, follows) values($user_id, '$username', -1);"; | ||||||
|     $mysql = require('mysql_credentials.php'); |     $mysql = require('mysql_credentials.php'); | ||||||
|     $conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']); |     $conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user