mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-29 17:28:36 +01:00
fixed bug [ 991222 ] Error uploading file -
thought the whole class need to be reworked with the new db-functions
This commit is contained in:
parent
8107e51abc
commit
968f1ccf91
@ -2022,7 +2022,15 @@
|
|||||||
$sql .= ', ';
|
$sql .= ', ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= "$attribute='" . $this->clean_string (array ('string' => $data['attributes'][$attribute])) . "'";
|
// RalfBecker 2004/07/24:
|
||||||
|
// this is only a hack to fix bug [ 991222 ] Error uploading file
|
||||||
|
// the whole class need to be reworked with the new db-functions
|
||||||
|
if (!isset($this->column_defs))
|
||||||
|
{
|
||||||
|
$table_defs = $GLOBALS['phpgw']->db->get_table_definitions('phpgwapi','phpgw_vfs');
|
||||||
|
$this->column_defs = $table_defs['fd'];
|
||||||
|
}
|
||||||
|
$sql .= $attribute.'=' .$GLOBALS['phpgw']->db->quote($data['attributes'][$attribute],$this->column_defs[$attribute]['type']);
|
||||||
|
|
||||||
$change_attributes++;
|
$change_attributes++;
|
||||||
}
|
}
|
||||||
@ -2032,7 +2040,7 @@
|
|||||||
{
|
{
|
||||||
return True; // nothing to do
|
return True; // nothing to do
|
||||||
}
|
}
|
||||||
$sql .= " WHERE file_id='$record[file_id]'";
|
$sql .= ' WHERE file_id='.(int) $record['file_id'];
|
||||||
$sql .= $this->extra_sql (array ('query_type' => VFS_SQL_UPDATE));
|
$sql .= $this->extra_sql (array ('query_type' => VFS_SQL_UPDATE));
|
||||||
$query = $GLOBALS['phpgw']->db->query ($sql, __LINE__, __FILE__);
|
$query = $GLOBALS['phpgw']->db->query ($sql, __LINE__, __FILE__);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user