Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Undefined property: stdClass::$color 01 Nov 2013 13:56 #11510

  • ewajoom
  • ewajoom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 2
Hi,

After generation/installation of component, I've got messages :
Undefined property: stdClass::$color in /Applications/XAMPP/xamppfiles/htdocs/uved4/administrator/components/com_XXX/dom/html/form/input/select/radio.php on line 124
$options['color'] = $item->$colorKey;

If it can help anyone, I've changed it with a color :
$options['color'] = '#000';

Please Log in or Create an account to join the conversation.

Undefined property: stdClass::$color 01 Nov 2013 18:37 #11513

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thanks

Fixed.
$options = array();
if ($colorKey && isset($item->$colorKey))
	$options['color'] = $item->$colorKey;
Coding is now a piece of cake
The following user(s) said Thank You: ewajoom

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.054 seconds
  Love COOKING with COOK It has all the ingredients for a delicious Joomla component!
audibleid (Forum)

Get Started