aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Gergo2020-03-28 21:48:25 +0100
committerM.Gergo2020-03-28 21:48:25 +0100
commitbc0cbc904b6e23d6efeed1b2a8f9f408fe09198c (patch)
treef0d2417aaf886b5a331275710604cf54388f47b3
parentd0491862affbfd6c8d08044a0a78f37ce3084feb (diff)
downloadmayor-bc0cbc904b6e23d6efeed1b2a8f9f408fe09198c.tar.gz
mayor-bc0cbc904b6e23d6efeed1b2a8f9f408fe09198c.zip
Mayor-Nextcloud script: apró javítás
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index 13994da5..7f06d9a3 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/nextcloud/mayor-nextcloud.php
@@ -51,8 +51,10 @@ $replace = array( 'aa', 'ae', 'ee', 'ii', 'oo', 'oe', 'ooe', 'uu', 'ue', 'uue',
$log['verbose'] = $m2n['verbose'];
for($i = 1; $i<$argc; $i++){
if(@$argv[$i] == "--loglevel" and is_numeric($argv[$i+1])){$log['verbose'] = intval($argv[$i+1]); $i++;}
- if(@$argv[$i] == "--set-diak-quota" ){ $ALWAYS_SET_DIAK_QUOTA = true; if($log['verbose'] < 4){ $log['verbose'] = 4;} }
+ if(@$argv[$i] == "--set-diak-quota" ){ $ALWAYS_SET_DIAK_QUOTA = true; }
}
+if( $ALWAYS_SET_DIAK_QUOTA === true && $log['verbose'] < 4 ){ $log['verbose'] = 4; }
+
if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Improved) és php7 kell!
@@ -703,7 +705,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
if($ALWAYS_SET_DIAK_QUOTA === true && $curr_tanarId < 0 && $curr_diakId > 0 ){ //Állítsunk-e erőből (diák) qvótát?
$params['quota'] = $m2n['diak_quota']; // Alapértelmezett diák kvóta
user_set($curr,$params);
- if ($log['verbose'] > 2 ){ echo "* -\t\tBeállítva:\t"."Qvóta: ".$params['quota']."\t\n";}
+ if ($log['verbose'] > 3 ){ echo "* -\t\tBeállítva:\t"."Qvóta: ".$params['quota']."\t\n";}
}
foreach($nxt_group as $key3 => $val3){ //A tankörök egyeztetése