️ avoid "missing index" warnings

This commit is contained in:
Marc Michalsky forumZFD 2021-04-12 13:30:18 +02:00
parent 938371c8c5
commit 15b496de1c
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -562,13 +562,17 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
}
// Change DateTime string into timestamp
if (isset($values['last_update'])) {
$values['last_update'] =
self::getTimestamp($values['last_update']);
}
// Default project_type to ''
if (isset($values['type'])) {
$values['type'] = $values['type'] == 'default'
? ''
: $values['type'];
}
// Cast project target to integer
if (isset($values['project_target'])) {