Error if only one ratio selected #14

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

2 participants

@mblabs

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
Owner

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