Skip to content

Commit e4393fc

Browse files
author
Till Brehm
committed
Fixed syntax error in new XFS quota code.
1 parent bc69174 commit e4393fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

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

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

0 commit comments

Comments
 (0)