Use pre-existing function to handle deleted flag

This commit is contained in:
Nathan Gray 2010-05-04 21:35:06 +00:00
parent 5bea81f18f
commit a2eab86ef8

View File

@ -800,10 +800,8 @@ class calendar_bo
}
}
// Check for deleted flag
if(!is_numeric($event['deleted']) && $event['deleted'] == 'f') {
$event['deleted'] = false;
}
// Fix deleted flag
$event['deleted'] = egw_db::from_bool($event['deleted']);
}
}