diff --git a/phpBB/phpbb/attachment/manager.php b/phpBB/phpbb/attachment/manager.php
index 414a8edfdd..9dcd3c5c92 100644
--- a/phpBB/phpbb/attachment/manager.php
+++ b/phpBB/phpbb/attachment/manager.php
@@ -51,9 +51,9 @@ class manager
 	 * @return int|bool Number of deleted attachments or false if something
 	 *			went wrong during attachment deletion
 	 */
-	public function delete($mode, $id, $resync = true)
+	public function delete($mode, $ids, $resync = true)
 	{
-		return $this->delete->delete($mode, $id, $resync);
+		return $this->delete->delete($mode, $ids, $resync);
 	}
 
 	/**