Skip to content

Commit

Permalink
mood save git
Browse files Browse the repository at this point in the history
  • Loading branch information
karrak1 committed Dec 31, 2022
1 parent 21c5a36 commit a5b9695
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
2 changes: 1 addition & 1 deletion infusions/forum/classes/threads/mood.php
Expand Up @@ -64,7 +64,7 @@ public function postMood() {
$has_reacted = (bool)$this->moodExists($notify_data['notify_sender'], $notify_data['notify_mood_id'], $notify_data['post_id']);

if ($mood_exists === TRUE && $has_reacted === FALSE) {
dbquery_insert(DB_POST_NOTIFY, $notify_data, 'save');
dbquery_insert(DB_POST_NOTIFY, $notify_data, 'save', ['primary_key' => 'post_id']);
$response = TRUE;
}
}
Expand Down
5 changes: 2 additions & 3 deletions infusions/forum/infusion.php
Expand Up @@ -25,7 +25,7 @@
// Infusion general information
$inf_title = $locale['forums']['title'];
$inf_description = $locale['forums']['description'];
$inf_version = '2.2.1';
$inf_version = '2.2.0';
$inf_developer = 'PHP Fusion Development Team';
$inf_email = 'info@phpfusion.com';
$inf_weburl = 'https://phpfusion.com';
Expand Down Expand Up @@ -231,13 +231,12 @@
) ENGINE=MyISAM DEFAULT CHARSET=UTF8 COLLATE=utf8_unicode_ci";

$inf_newtable[] = DB_POST_NOTIFY." (
post_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
notify_mood_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
notify_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
notify_user MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
notify_sender MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
notify_status tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (post_id),
KEY notify_datestamp (notify_datestamp)
) ENGINE=MyISAM DEFAULT CHARSET=UTF8 COLLATE=utf8_unicode_ci";

Expand Down
28 changes: 0 additions & 28 deletions infusions/forum/upgrade/2.2.1.upgrade.inc

This file was deleted.

0 comments on commit a5b9695

Please sign in to comment.