From 4c51598ebac49fe9108e73117907578227d81e1b Mon Sep 17 00:00:00 2001 From: jonathangreen Date: Tue, 22 Mar 2011 14:24:13 -0300 Subject: [PATCH] Defined names in contentmodel.inc so that if no content model is defined PHP doesn't complain about using undefined variables --- ContentModel.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/ContentModel.inc b/ContentModel.inc index 4650d1ad..c82baf89 100644 --- a/ContentModel.inc +++ b/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);