bug in the migration users, only when there a userfield of type age_verification

Started by joseph_2, November 15, 2014, 22:05:14 PM

Previous topic - Next topic

joseph_2

Joomla 2.5.27
PHP 5.5.6



hello developpers,

I found a bug in the migration of users, only when there a userfield of type age_verification,
a fatal PHP error occurs.


location:
backend/com_virtuemart/tables/userfields.php - function formatFieldType()  case: age_verification

PHP Fatal error:  Cannot use object of type stdClass as array


I solved it this way:

I replaced this line ...
$this->params = 'minimum_age='.(int)$_data['minimum_age']."\n";

with ...
$this->params = 'minimum_age='.(int)$_data->minimum_age."\n";



regards,
Joep Winters

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation