Changeset 10618
- Timestamp:
- 08/02/08 22:14:38 (1 year ago)
- Files:
-
- branches/1.0/lib/util/sfBrowser.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/util/sfBrowser.class.php
r9672 r10618 413 413 414 414 // if no option is selected and if it is a simple select box, take the first option as the value 415 if (!$found && !$multiple) 416 { 417 $value = $xpath->query('descendant::option', $element)->item(0)->getAttribute('value'); 415 $option = $xpath->query('descendant::option', $element)->item(0); 416 if (!$found && !$multiple && $option instanceof DOMElement) 417 { 418 $value = $option->getAttribute('value'); 418 419 } 419 420 }

