Browse Source

Defined names in contentmodel.inc so that if no content model is defined PHP doesn't complain about using undefined variables

pull/105/head
jonathangreen 14 years ago
parent
commit
4c51598eba
  1. 1
      ContentModel.inc

1
ContentModel.inc

@ -2038,6 +2038,7 @@ class ContentModel extends XMLDatastream {
if (!$this->validate()) {
return FALSE;
}
$names = FALSE;
$result = $this->xpath->query('//cm:forms/cm:form/@name'); // Select the name attribute of all forms.
for($i = 0; $i < $result->length; $i++) {
$attribute = $result->item($i);

Loading…
Cancel
Save