Jump to content
  • 0

Problem - Ticket System by Shang


Nin0Nin0

Question

Hello dear comunity , today i installed this system  , and i have a small problem with ticket_lib.so at line 58. 

 

Sysser: ticket_lib.so:58: attempt to concatenate local `pid' (a nil value)

 

Row's at lib: 

function ticket.set_main_member()
	local pid = ticket.config.MAIN_MEMBER
	local c,permisions = mysql_direct_query("SELECT * FROM "..ticket.config.PERMISIONS_DB_TABLE.." WHERE pid = "..pid.." LIMIT 1;")
	if c > 0 or pid == 0 then return end
	mysql_direct_query("INSERT INTO "..ticket.config.PERMISIONS_DB_TABLE.." (pid,answer_permision,delete_permision,add_permision) VALUES ("..pid..",1,1,1);")
end

 

 Thank's for help's boy's.

 

Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.