show media input on discussion only if mms is enabled

This commit is contained in:
osaajani 2021-04-06 20:52:07 +02:00
parent 7c85753bfa
commit f992fe21bc
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@
<?php if ($response_phone ) { ?>
<input type="hidden" name="id_phone" value="<?php $this->s($response_phone['id']); ?>" />
<?php } ?>
<input name="medias[]" type="file" multiple />
<?php if ($_SESSION['user']['settings']['mms'] ?? false) { ?>
<input name="medias[]" type="file" multiple />
<?php } ?>
<button class="btn" ><span class="fa fa-fw fa-send-o"></span> Envoyer</button>
</form>
</div>