osclass/OSClass — Issue #128: [Bug] in item.form.class.php file
Author: trains58554
Created: 2012-01-22 00:47:11+00:00
State: open

Hi

I found an error in the item.form.class.php file. When you set a default currency in the admin then go to post a new ad it does not select the default currency. I did however find a fix.

On line 191 you will find this code

```php
} elseif ( is_array($currency) ) {
if ( isset($currency['s_value']) ) {
$default_key = $currency['s_value'];
}
}
```
change it like so

```php
} elseif ( isset($currency) ) {
$default_key = $currency;
}
```