FIX PHP Notice:  Undefined variable: ns

Undefined variable: ns >> $namespaceregex