Changeset - 977f2f6ae844
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-03-24 12:19:11
ohnobinki@ohnopublishing.net
Fix some incorrect calls to stricmp() which should instead call strcasecmp().
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
inc/school.crawl.inc
Show inline comments
 
@@ -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');
0 comments (0 inline, 0 general)