Posted by vmole on April 9, 2005 at 8:19pm
Jump to:
| Project: | Code Snippets |
| Version: | master |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
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
#1
Development stopped five years ago. Module obsoleted.
#2