Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
7a9c9755
Commit
7a9c9755
authored
Aug 14, 2018
by
Gerald Salin
Browse files
#59
update project description
parent
817b4a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_db.php
View file @
7a9c9755
...
...
@@ -44,7 +44,7 @@ class tx_nG6_db {
* @param string $field the field to change
* @param string $value the new value
*/
static
function
update_field
(
$table
,
$id
,
$field
,
$value
,
$no_quote_fields
)
{
static
function
update_field
(
$table
,
$id
,
$field
,
$value
,
$no_quote_fields
=
FALSE
)
{
if
(
$field
==
'uid'
)
{
throw
new
Exception
(
"The function 'update_field' cannot change an id."
)
;
}
...
...
@@ -56,7 +56,7 @@ class tx_nG6_db {
}
else
{
$array
=
array
(
$field
=>
$value
);
}
if
(
is_array
(
$id
)
){
if
(
is_array
(
$id
)){
$GLOBALS
[
'TYPO3_DB'
]
->
exec_UPDATEquery
(
$table
,
'uid IN ('
.
implode
(
','
,
$id
)
.
')'
,
$array
,
$no_quote_fields
);
}
else
{
$GLOBALS
[
'TYPO3_DB'
]
->
exec_UPDATEquery
(
$table
,
'uid='
.
$id
,
$array
,
$no_quote_fields
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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