Commits

Bulat Shakirzyanov  committed 3bb3062

add check for key existence

  • Participants
  • Parent commits e40644f

Comments (0)

Files changed (1)

File phpdomain/sphinxcontrib/phpdomain.py

                 modname = self.options.get(
                     'namespace', self.env.temp_data.get('php:namespace'))
 
-                if modname and not self.env.temp_data['php:in_class']:
+                if modname and 'php:in_class' in self.env.temp_data and not self.env.temp_data['php:in_class']:
                     nodetext = modname + NS
                     signode += addnodes.desc_addname(nodetext, nodetext)