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

  I want to save the world...... let's cook a solution about it.
VeCrea (Forum)

Get Started