Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED V2] Models error

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

  • M4d3L
  • M4d3L's Avatar
  • Offline
  • Senior Member
  • Posts: 45
  • Thank you received: 7
  • Karma: 3
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.
The administrator has disabled public write access.
Time to create page: 0.056 seconds

Get Started