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.072 seconds

Hi All just wanted to add one more "thank you" voice to all those who discovered the value of this amazing application. The website I was working on went to production few days ago and I do not want to even try to imagine what would it take to build it without j-cook. So - endless thanks keep it running and evolving I believe it deserves to be the core tool for any joomla application! Thanks!
Michael (bmk028 - Forum)  

Get Started