Explorar el Código

fix api error for deluge

CauseFX hace 4 años
padre
commit
acb4a665be
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      api/homepage/deluge.php

+ 1 - 2
api/homepage/deluge.php

@@ -66,8 +66,7 @@ trait DelugeHomepageItem
 	
 	public function testConnectionDeluge()
 	{
-		if (empty($this->config['delugeURL'])) {
-			$this->setAPIResponse('error', 'Deluge URL is not defined', 422);
+		if (!$this->homepageItemPermissions($this->delugeHomepagePermissions('main'), true)) {
 			return false;
 		}
 		try {