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

TOPIC:

[FIXED V2] Models error 22 Mar 2012 21:22 #1710

  • M4d3L
  • M4d3L's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 7
I found a small error near comment "//Convert data from a stdClass" in models class. (in save method)


use
if (is_object($data) && get_class($data) == 'stdClass')
			$data = JArrayHelper::fromObject($data);

else of
if (get_class($data) == 'stdClass')
			$data = JArrayHelper::fromObject($data);

Because in the case $data is an array, it generate an silent error because of the redirection.

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

  • Page:
  • 1
Time to create page: 0.049 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started