From 14ab931624cad23d83df40654c8a81ff9d4d034c Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Mon, 25 Apr 2016 06:55:42 -0400 Subject: [PATCH] Fixed syntax error in new XFS quota code (cron) --- server/plugins-available/cron_plugin.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins-available/cron_plugin.inc.php b/server/plugins-available/cron_plugin.inc.php index f638166d56..fe3ddfb0b9 100644 --- a/server/plugins-available/cron_plugin.inc.php +++ b/server/plugins-available/cron_plugin.inc.php @@ -140,7 +140,7 @@ class cron_plugin { $file_system = explode(" ", $df_output)[0]; $primitive_root = explode(" ", $df_output)[1]; - if ( $file_system , array('ext2','ext3','ext4') ) { + if ( in_array($file_system , array('ext2','ext3','ext4'),true) ) { exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null'); exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null'); } elseif ($file_system == 'xfs') { -- GitLab