Changeset 10620
- Timestamp:
- 08/02/08 22:15:35 (1 year ago)
- Files:
-
- branches/1.2/lib/util/sfBrowser.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/util/sfBrowser.class.php
r9673 r10620 468 468 /** 469 469 * Test for an uncaught exception. 470 * 470 * 471 471 * @return boolean 472 472 */ … … 641 641 642 642 // if no option is selected and if it is a simple select box, take the first option as the value 643 if (!$found && !$multiple) 643 $option = $xpath->query('descendant::option', $element)->item(0); 644 if (!$found && !$multiple && $option instanceof DOMElement) 644 645 { 645 $value = $ xpath->query('descendant::option', $element)->item(0)->getAttribute('value');646 $value = $option->getAttribute('value'); 646 647 } 647 648 }

