diff options
author | M.Gergo | 2018-09-15 17:15:28 +0200 |
---|---|---|
committer | M.Gergo | 2018-09-15 17:15:28 +0200 |
commit | fd02321e530b6aff757ee672c6488af8e66ab764 (patch) | |
tree | 289475169e2b979a3e7f865eac3621e1bcbf8c07 | |
parent | d673ba1e6ecae71fe83bc1652644bbe66019c7ad (diff) | |
download | mayor-fd02321e530b6aff757ee672c6488af8e66ab764.tar.gz mayor-fd02321e530b6aff757ee672c6488af8e66ab764.zip |
occ group:add test #2
-rw-r--r-- | egyéb/nextcloud/mayor-nextcloud.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php index 3a6fb2ff..bbd4a7ec 100644 --- a/egyéb/nextcloud/mayor-nextcloud.php +++ b/egyéb/nextcloud/mayor-nextcloud.php @@ -269,11 +269,11 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im } function group_add($groupName){ //Új csoport létrehozása a Nextcloud-ban - global $link,$db,$log; + global $occ_user,$occ_path,$link,$db,$log; if(strlen($groupName) > 64){ //mivel (egyelőre) nics erre 'occ' parancs, ezért közvetlenül kell... echo "\n****** Hiba: a csoportnév nagyobb, mint 64 karakter!! ******\n"; } else { - if(nxt_get_version < 14) { + if(nxt_get_version() < 14) { $q = "INSERT IGNORE INTO ".$db['nxt_dbname'].".".$db['nxt_prefix']."groups (gid) VALUES ('".$groupName."'); "; if ($log['verbose'] > 5 ){ echo "NXT ->\t".$q."\n"; } if(mysqli_query($link, $q) !== TRUE ) echo "\nNXT -> \t****** Csoport létrehozási hiba. (adatbázis) ******\n"; |