Commit 7a9c9755 authored by Gerald Salin's avatar Gerald Salin
Browse files

#59 update project description

parent 817b4a60
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment