Browse Source

fix invites plugin

CauseFX 4 years ago
parent
commit
f2e37ce7d2
1 changed files with 5 additions and 3 deletions
  1. 5 3
      api/plugins/invites/plugin.php

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

@@ -115,9 +115,11 @@ class Invites extends Organizr
 	{
 		$response = [
 			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);