Browse Source

Merge pull request #1726 from TehMuffinMoo/patch-1

Update debug error for correct function key
causefx 4 years ago
parent
commit
cb3378ac33
2 changed files with 4 additions and 4 deletions
  1. 2 2
      api/plugins/invites/plugin.php
  2. 2 2
      api/plugins/php-mailer/main.js

+ 2 - 2
api/plugins/invites/plugin.php

@@ -196,7 +196,7 @@ class Invites extends Organizr
 								$noLongerId = 0;
 								$noLongerId = 0;
 								$libraries = explode(',', $this->config['INVITES-plexLibraries']);
 								$libraries = explode(',', $this->config['INVITES-plexLibraries']);
 								foreach ($libraries as $child) {
 								foreach ($libraries as $child) {
-									if ($this->search_for_value($child, $libraryList)) {
+									if (!$this->search_for_value($child, $libraryList)) {
 										$libraryList['libraries']['No Longer Exists - ' . $noLongerId] = $child;
 										$libraryList['libraries']['No Longer Exists - ' . $noLongerId] = $child;
 										$noLongerId++;
 										$noLongerId++;
 									}
 									}
@@ -484,4 +484,4 @@ class Invites extends Organizr
 		return (!empty($plexUser) ? $plexUser : null);
 		return (!empty($plexUser) ? $plexUser : null);
 	}
 	}
 	
 	
-}
+}

+ 2 - 2
api/plugins/php-mailer/main.js

@@ -230,7 +230,7 @@ $(document).on('click', '.phpmSendTestEmail', function() {
 	organizrAPI2('GET','api/v2/plugins/php-mailer/email/test').success(function(data) {
 	organizrAPI2('GET','api/v2/plugins/php-mailer/email/test').success(function(data) {
 		var response = data.response;
 		var response = data.response;
 		if(response.message !== null && response.message.indexOf('|||DEBUG|||') == 0){
 		if(response.message !== null && response.message.indexOf('|||DEBUG|||') == 0){
-			messageSingle('',window.lang.translate('Press F11 to check Console for output'),activeInfo.settings.notifications.position,'#FFF','warning','5000');
+			messageSingle('',window.lang.translate('Press F12 to check Console for output'),activeInfo.settings.notifications.position,'#FFF','warning','5000');
 			console.warn(response.message);
 			console.warn(response.message);
 		}else if(response.result == 'success') {
 		}else if(response.result == 'success') {
 			messageSingle('',window.lang.translate('Email Test Successful'),activeInfo.settings.notifications.position,'#FFF','success','20000');
 			messageSingle('',window.lang.translate('Email Test Successful'),activeInfo.settings.notifications.position,'#FFF','success','20000');
@@ -241,4 +241,4 @@ $(document).on('click', '.phpmSendTestEmail', function() {
 		OrganizrApiError(xhr, 'Mailer Error');
 		OrganizrApiError(xhr, 'Mailer Error');
 	});
 	});
 	ajaxloader();
 	ajaxloader();
-});
+});