Skip to content

Commit 14ab931

Browse files
author
Florian Schaal
committed
Fixed syntax error in new XFS quota code (cron)
1 parent d44bcf1 commit 14ab931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/cron_plugin.inc.php

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

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

0 commit comments

Comments
 (0)