Closed (won't fix)
Project:
Code Snippets
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2005 at 20:19 UTC
Updated:
28 Nov 2010 at 22:20 UTC
The number of data values doesn't match the column list, it's missing the fname value. Here's the diff, against snippets.module v 1.9:
--- snippets.module (revision 18)
+++ snippets.module (working copy)
@@ -92,7 +92,7 @@
* Implementation of the hook_insert()
*/
function snippets_insert($node) {
- db_query("INSERT INTO {snippets} (nid, snippet, fname, tip, code) VALUES (%d, '%s', '%s', '%s')", $node->nid, $node->snippet, $node->tip, $node->code);
+ db_query("INSERT INTO {snippets} (nid, snippet, fname, tip, code) VALUES (%d, '%s', '%s', '%s', '%s')", $node->nid, $node->snippet, strtolower($node->fname), $node->tip, $node->code);
}
Comments
Comment #1
axel commentedDevelopment stopped five years ago. Module obsoleted.
Comment #2
axel commented