Error in actionHandler.php on line 73?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 4, 2008   (RSS)

By jsv - February 4, 2008

Hello there,

I realy like working with CMS! Unfortunately, all of a sudden (without making any changes) I receive this message after erasing records:

Notice: Use of undefined constant mysql_affected_rows - assumed 'mysql_affected_rows' in cmsAdmin/lib/menus/default/actionHandler.php on line 73

The records are erased, but the message is confusing ofcourse.

Can you explain me how to avoid this?

Thanks,
Jan

Re: [jsv] Error in actionHandler.php on line 73?

By Dave - February 4, 2008

Thanks for the error report. If you open lib/menus/default/actionHandler.php and search for this line:

elseif (mysql_affected_rows) { alert("Record erased!"); }

and replace it with this (add the brackets)

elseif (mysql_affected_rows()) { alert("Record erased!"); }

It should fix it. And we'll add that code to the next version (v1.10) as well.

Hope that helps! Thanks for the report, let me know if you need anything else.
Dave Edis - Senior Developer
interactivetools.com