Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
30a2d3cb
Commit
30a2d3cb
authored
Aug 24, 2012
by
Axel ROGER
Browse files
Bugfix: create 'aws' quota in table 'quotas'
parent
5655d66d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/quota_init
View file @
30a2d3cb
...
...
@@ -52,7 +52,7 @@ if (mysql_errno()) {
}
while
(
$c
=
mysql_fetch_array
(
$r
))
{
$s
=
mysql_query
(
"SELECT name FROM quotas WHERE uid='
$c[uid]
' AND name='
$name
';"
);
if
(
mysql_num_rows
(
$s
))
{
if
(
!
mysql_num_rows
(
$s
))
{
mysql_query
(
"INSERT INTO quotas (uid,name,total) VALUES ('
$c[uid]
','
$name
','
$quota
') on DUPLICATE KEY UPDATE total=
$quota
;"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment