# Exclude chapter 0 from fancyhdr footer

I've run into a problem using the package fancyhdr, if you look at the left side of the footer, it says "Kapitel 0" which I want to remove for chapter 0 exclusively. Chapter 0 contains TOC, table of tabels and table of figures.

Here is the code:

\fancypagestyle{plain}{
\fancyhf{}%
\fancyfoot[L]{\chaptername \hspace{1pt} \thechapter}
\fancyfoot[R]{\thepage \hspace{1pt} af \pageref{LastPage}}
\fancyhead[L]{Fagprojekt for matematik og teknologi (01666)}

I've considered redefining \chapternameonly including any chapters with a numerical value above 0, and making a new pagestyle including TOC, TOT and TOF, both option without any luck.
• A quick solution \fancyfoot[L]{\ifnum\value{chapter}>0\chaptername \hspace{1pt} \thechapter\fi} – touhami Jun 16 '16 at 11:24