That was my mistake, addedit is right (or at least as far as I know from looking at the code you posted). If it really is supposed to be 'addeditphoto' then I agree that it doesn't look like it would make any difference to this problem.
When you can test, you could put in code to print out the value of $navclass at different places, and I'm sure you'll be able to figure it out.
I'll do it when my site will be visible again. Thank you very much for your kind help. Really appreciated.
--------------- Added 05 Jul 2015 at 10:35 ---------------
For those who maybe have the same problem, at least in my case, I found the solution. Don't know why but the assignement to $navclass must not exists.