Fix incorrect variable
This commit is contained in:
parent
03dcf60c88
commit
7dcccfb0de
|
@ -1,3 +1,5 @@
|
|||
0.14: Fix incorrect variable
|
||||
|
||||
0.12: prepare to hook into 2.0 core Dashboard and use other 2.0 facilities
|
||||
|
||||
0.11.1: Use serendipity_specialchars
|
||||
|
|
|
@ -27,7 +27,7 @@ class serendipity_event_adminnotes extends serendipity_event {
|
|||
'php' => '4.1.0'
|
||||
));
|
||||
|
||||
$propbag->add('version', '0.13');
|
||||
$propbag->add('version', '0.14');
|
||||
$propbag->add('author', 'Garvin Hicking, Matthias Mees');
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('configuration', array('feedback', 'limit', 'html', 'markup', 'cutoff'));
|
||||
|
@ -223,7 +223,9 @@ class serendipity_event_adminnotes extends serendipity_event {
|
|||
foreach($targets AS $target) {
|
||||
$q = serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}adminnotes_to_groups (noteid, groupid) VALUES ($noteid, $target)");
|
||||
}
|
||||
if (is_string($g)) echo $q . "<br />\n";
|
||||
if (is_string($q)) {
|
||||
echo $q . "<br />\n";
|
||||
}
|
||||
} else {
|
||||
serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}adminnotes (authorid, notetime, subject, body, notetype) VALUES ('" . $serendipity['authorid'] . "', " . time() . ", '" . serendipity_db_escape_string($_REQUEST['note_subject']) . "', '" . serendipity_db_escape_string($_REQUEST['note_body']) . "', '" . serendipity_db_escape_string($_REQUEST['note_notetype']) . "')");
|
||||
$noteid = serendipity_db_insert_id('adminnotes', 'noteid');
|
||||
|
|
Loading…
Reference in a new issue