From fd02321e530b6aff757ee672c6488af8e66ab764 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sat, 15 Sep 2018 17:15:28 +0200 Subject: occ group:add test #2 --- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'egyéb') diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index 3a6fb2ff..bbd4a7ec 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/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"; -- cgit v1.2.3