Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if only one ratio selected #14

Open
mblabs opened this issue May 31, 2012 · 1 comment
Open

Error if only one ratio selected #14

mblabs opened this issue May 31, 2012 · 1 comment

Comments

@mblabs
Copy link

mblabs commented May 31, 2012

Only if one ratio if selected, if none or more than one ratios all is ok.

Symphony Fatal Error: Argument $value is not of type string, given double.

An error occurred in /Applications/XAMPP/xamppfiles/htdocs/vineyard/symphony/lib/toolkit/class.general.php around line 1320

1315                     throw new InvalidArgumentException(__('Enforced type `%1$s` for argument `$%2$s` does not match any known variable types.', array($param['type'], $name)));
1316                 }
1317
1318                 // validate variable type
1319                 if( !call_user_func($validator, $param['var']) ){
1320                     throw new InvalidArgumentException(__('Argument `$%1$s` is not of type `%2$s`, given `%3$s`.', array($name, $param['type'], gettype($param['var']))));
1321                 }
1322
1323             }
1324         } 
@klaftertief
Copy link
Collaborator

Thanks for reporting. This should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants