diff --git a/inc/school.crawl.inc b/inc/school.crawl.inc --- a/inc/school.crawl.inc +++ b/inc/school.crawl.inc @@ -452,7 +452,7 @@ function school_crawl_form(DOMElement $f * Skip over checkboxes which are not ``successful'' * (http://w3.org/ terminology). */ - if (!stricmp($input_node->getAttribute('type'), 'checkbox') + if (!strcasecmp($input_node->getAttribute('type'), 'checkbox') && !$input_node->hasAttribute('checked')) continue; @@ -507,7 +507,7 @@ function school_crawl_form_select_array( foreach ($select->childNodes as $child_node) if ($child_node->nodeType == XML_ELEMENT_NODE - && !stricmp($child_node->tagName, 'options') + && !strcasecmp($child_node->tagName, 'options') && $child_node->hasAttribute('name')) { $name = $child_node->getAttribute('name');