Permalink
Browse files

fixing typecasting issue (solves auto selection for select fields)

  • Loading branch information...
1 parent 388ae75 commit 4747c671625319914c1b086539e54dceade46d6b @Zeelot committed Jul 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/yuriko/yform/element.php
@@ -80,7 +80,7 @@ public function load_settings(YForm $settings)
$this->_settings = $settings;
// Using the dot-notated path to grab the value
- if ($settings->get_value($this->_path))
+ if ($settings->get_value($this->_path) !== FALSE)
{
$this->set_value($settings->get_value($this->_path));
}

0 comments on commit 4747c67

Please sign in to comment.