Skip to content

Commit 2527d26

Browse files
author
Florian Schaal
committed
fixed last commit
1 parent 7e2a3fa commit 2527d26

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,6 @@ ALTER TABLE `sys_user`
223223

224224
ALTER TABLE `web_database` ADD COLUMN `quota_exceeded` enum('n','y') NOT NULL DEFAULT 'n' AFTER `database_quota`;
225225

226-
ALTER TABLE `client` ADD COLUMN `limit_database_users` int(11) NOT NULL DEFAULT '-1' after limit_database;
227-
ALTER TABLE `client_template` ADD COLUMN `limit_database_users` int(11) NOT NULL DEFAULT '-1' after limit_database;
226+
ALTER TABLE `client` ADD COLUMN `limit_database_user` int(11) NOT NULL DEFAULT '-1' after limit_database;
227+
ALTER TABLE `client_template` ADD COLUMN `limit_database_user` int(11) NOT NULL DEFAULT '-1' after limit_database;
228228

install/sql/ispconfig3.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ CREATE TABLE `client` (
230230
`default_dbserver` int(11) NOT NULL DEFAULT '1',
231231
`dns_servers` blob,
232232
`limit_database` int(11) NOT NULL DEFAULT '-1',
233-
`limit_database_users` int(11) NOT NULL DEFAULT '-1',
233+
`limit_database_user` int(11) NOT NULL DEFAULT '-1',
234234
`limit_database_quota` int(11) NOT NULL default '-1',
235235
`limit_cron` int(11) NOT NULL DEFAULT '0',
236236
`limit_cron_type` enum('url','chrooted','full') NOT NULL DEFAULT 'url',
@@ -352,7 +352,7 @@ CREATE TABLE `client_template` (
352352
`limit_dns_slave_zone` int(11) NOT NULL default '-1',
353353
`limit_dns_record` int(11) NOT NULL default '-1',
354354
`limit_database` int(11) NOT NULL default '-1',
355-
`limit_database_users` int(11) NOT NULL DEFAULT '-1',
355+
`limit_database_user` int(11) NOT NULL DEFAULT '-1',
356356
`limit_database_quota` int(11) NOT NULL default '-1',
357357
`limit_cron` int(11) NOT NULL default '0',
358358
`limit_cron_type` enum('url','chrooted','full') NOT NULL default 'url',

interface/web/sites/database_user_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function onShowNew() {
5555

5656
// we will check only users, not admins
5757
if($_SESSION['s']['user']['typ'] == 'user') {
58-
if(!$app->tform->checkClientLimit('limit_database_users')) {
58+
if(!$app->tform->checkClientLimit('limit_database_user')) {
5959
$app->error($app->tform->wordbook["limit_database_user_txt"]);
6060
}
61-
if(!$app->tform->checkResellerLimit('limit_database_users')) {
61+
if(!$app->tform->checkResellerLimit('limit_database_user')) {
6262
$app->error('Reseller: '.$app->tform->wordbook["limit_database_user_txt"]);
6363
}
6464
}

0 commit comments

Comments
 (0)