diff --git a/apps/files_external/ajax/addMountPoint.php b/apps/files_external/ajax/addMountPoint.php
index 0ed447f49e87d80c135010de5123d8f12a6c0191..ac7359669d2819dfa02535bc0b2460a0a96ce096 100644
--- a/apps/files_external/ajax/addMountPoint.php
+++ b/apps/files_external/ajax/addMountPoint.php
@@ -35,7 +35,7 @@ if ($_POST['isPersonal'] == 'true') {
 $mountPoint = (string)$_POST['mountPoint'];
 $oldMountPoint = (string)$_POST['oldMountPoint'];
 $class = (string)$_POST['class'];
-$options = (string)$_POST['classOptions'];
+$options = (array)$_POST['classOptions'];
 $type = (string)$_POST['mountType'];
 $applicable = (string)$_POST['applicable'];