Skip to content

Commit b5b6083

Browse files
author
Florian Schaal
committed
Fixes: #3846
1 parent ead7ad9 commit b5b6083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ function update($event_name, $data) {
745745
$file_system = explode(" ", $df_output)[0];
746746
$primitive_root = explode(" ", $df_output)[1];
747747

748-
if ( $file_system , array('ext2','ext3','ext4') ) {
748+
if ( in_array($file_system , array('ext2','ext3','ext4'), true) ) {
749749
exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null');
750750
exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null');
751751
} elseif ($file_system == 'xfs') {

0 commit comments

Comments
 (0)