Sfoglia il codice sorgente

fixed adding database for user (problem: incorrect type supplied to function is_object_valid)

Jeroen Derks 13 anni fa
parent
commit
c421cb7d04
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      bin/v-add-database

+ 2 - 2
bin/v-add-database

@@ -48,8 +48,8 @@ is_object_valid 'user' 'USER' "$user"
 is_object_unsuspended 'user' 'USER' "$user"
 is_object_new 'db' 'DB' "$database"
 get_next_dbhost
-is_object_valid "../../../conf/$type" 'HOST' "$host"
-is_object_unsuspended "../../../conf/$type" 'HOST' "$host"
+is_object_valid "../../../conf/$type" 'DBHOST' "$host"
+is_object_unsuspended "../../../conf/$type" 'DBHOST' "$host"
 #is_charset_valid
 is_package_full 'DATABASES'