This commit is contained in:
Ralf Becker 2015-08-17 15:31:02 +00:00
parent 82ca78d378
commit c3ce6bdbcc

View File

@ -2583,7 +2583,7 @@ function calendar_upgrade14_3()
$email.'='.$GLOBALS['egw_setup']->db->quote($row['email']),
), __LINE__, __FILE__, 'ORDER BY cal_status') as $user) // order A, T, U, X
{
if (strpos($user['email'], '@') !== false && $n++) continue;
if (strpos($user['email'], '@') !== false && !$n++) continue;
$GLOBALS['egw_setup']->db->delete('egw_cal_user', array_intersect_key($user, array_flip(array('cal_id','cal_recur_date','cal_user_type','cal_user_id','cal_status'))));
}
}