Foren / Cotonti / Support / Problem after inputting wrong type of variable

diablo
#1 7. März 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."

Dieser Beitrag wurde von diablo (am 8. März 2013, 23:27, vor 12 Jahre) bearbeitet
Trustmaster
#2 9. März 2013, 07:50

What file/line is it?

May the Source be with you!
diablo
#3 10. März 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."