Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Undefined property: stdClass::$color

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

  • ewajoom
  • ewajoom's Avatar
  • Offline
  • Junior Member
  • Posts: 36
  • Thank you received: 2
  • Karma: 0
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';
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Thanks

Fixed.
$options = array();
if ($colorKey && isset($item->$colorKey))
	$options['color'] = $item->$colorKey;
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: ewajoom
Time to create page: 0.059 seconds

Get Started