Skip to content

Instantly share code, notes, and snippets.

@pilif
Created April 13, 2022 09:27
Show Gist options
  • Save pilif/93bd78fbcd5731847b29d55de1dd3e00 to your computer and use it in GitHub Desktop.
Save pilif/93bd78fbcd5731847b29d55de1dd3e00 to your computer and use it in GitHub Desktop.
diff --git a/lib/modbase.php b/lib/modbase.php
index 64617bf5fe..806ab0bc15 100644
--- a/lib/modbase.php
+++ b/lib/modbase.php
@@ -690,9 +690,9 @@ abstract class PopScanModBase implements PopScanModule
) {
$md = true;
}
- if (!Customization::callHook("AlwaysDisplayVendorMessages")) {
+ #if (!Customization::callHook("AlwaysDisplayVendorMessages")) {
$constraints['unseen'] = true;
- }
+ #}
$unseen = $repo('overview', $constraints);
if (!$unseen) {
$md = false;
@@ -710,9 +710,9 @@ abstract class PopScanModBase implements PopScanModule
$md = true;
}
- if (empty($_SESSION['vendormessageseen']) && $popup && !current_user()->isAuthenticated()) {
- $md = $this->checkPopupsForUnAuthUser($popup);
- }
+# if (empty($_SESSION['vendormessageseen']) && $popup && !current_user()->isAuthenticated()) {
+# $md = $this->checkPopupsForUnAuthUser($popup);
+# }
if ($this->_show_unread_msg_count) {
$this->cached_message_data['n_unread_messages'] = is_array($unseen) ? count($unseen) : 0;
@@ -720,7 +720,7 @@ abstract class PopScanModBase implements PopScanModule
if ($md) {
$this->cached_message_data['has_messages'] = true;
- $_SESSION['vendormessageseen'] = true;
+# $_SESSION['vendormessageseen'] = true;
}
return $this->cached_message_data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment