mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-06 18:12:22 +02:00
Make sure there is new data before deleting the old data
This commit is contained in:
parent
354c91ff90
commit
c73aeb5c62
@ -53,6 +53,8 @@
|
||||
{
|
||||
$config_data = $this->config_data;
|
||||
|
||||
if ($config_data)
|
||||
{
|
||||
$this->db->lock('phpgw_config');
|
||||
$this->db->query("delete from phpgw_config where config_app='" . $this->appname . "'",__LINE__,__FILE__);
|
||||
while (list($name,$value) = each($config_data))
|
||||
@ -64,6 +66,7 @@
|
||||
}
|
||||
$this->db->unlock();
|
||||
}
|
||||
}
|
||||
|
||||
function delete_repository()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user