Closed (won't fix)
Project:
Actions
Version:
5.x-2.6
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2009 at 18:01 UTC
Updated:
3 Feb 2013 at 19:42 UTC
In the actions.inc file, the last function, actions_delete(), uses the %d modifier for a varchar column (aid), when it should be %s.
Thus,
function actions_delete($aid) {
db_query("DELETE FROM {actions} WHERE aid = %d", $aid);
module_invoke_all('actions_delete', $aid);
}
Becomes,
/**
* Delete a single action from the database.
*
* @param $aid
* integer The ID of the action to delete.
*/
function actions_delete($aid) {
db_query("DELETE FROM {actions} WHERE aid = '%s'", $aid);
module_invoke_all('actions_delete', $aid);
}
Comments
Comment #1
pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.