Fix incorrect variable

This commit is contained in:
Matthias Gutjahr 2015-03-17 21:32:08 +01:00
parent 03dcf60c88
commit 7dcccfb0de
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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');