Sfoglia il codice sorgente

fix invites plugin

CauseFX 4 anni fa
parent
commit
f2e37ce7d2
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 3
      api/plugins/invites/plugin.php

+ 5 - 3
api/plugins/invites/plugin.php

@@ -115,9 +115,11 @@ class Invites extends Organizr
 	{
 	{
 		$response = [
 		$response = [
 			array(
 			array(
-				'function' => 'fetchAll',
-				'query' => 'SELECT * FROM invites WHERE code = ? COLLATE NOCASE',
-				$code
+				'function' => 'fetch',
+				'query' => array(
+					'SELECT * FROM invites WHERE code = ? COLLATE NOCASE',
+					$code
+				)
 			)
 			)
 		];
 		];
 		$info = $this->processQueries($response);
 		$info = $this->processQueries($response);