Форуми / Cotonti / Support / Problem after inputting wrong type of variable

diablo
#1 07.03.2013 02:20

after inputting letters into the extra field which has integer as type, i can no longer add pages...  i get error 930 all the time

Added 2 days later:

i put cot_log in every step of page add and

cot_block($usr['auth_write']);

seems to be failing. there is only 1 user (admin) and this appeared right after this event

 

 

 

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."

Відредаговано: diablo (08.03.2013 23:27, 11 років тому)
Trustmaster
#2 09.03.2013 07:50

What file/line is it?

May the Source be with you!
diablo
#3 10.03.2013 13:44

page.add.php line:56

replaced it with

	cot_block($usr['isadmin'] || $usr['auth_write']);

to make it work.

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."