Once again, notices ... (#5535)
This commit is contained in:
committed by
Tobias Diekershoff
parent
4bd7daa205
commit
71b1638d9a
+6
-2
@@ -48,9 +48,13 @@ class Event extends BaseObject
|
||||
}
|
||||
|
||||
if ($simple) {
|
||||
$o = "<h3>" . BBCode::convert($event['summary'], false, $simple) . "</h3>";
|
||||
if (!empty($event['summary'])) {
|
||||
$o = "<h3>" . BBCode::convert($event['summary'], false, $simple) . "</h3>";
|
||||
}
|
||||
|
||||
$o .= "<div>" . BBCode::convert($event['desc'], false, $simple) . "</div>";
|
||||
if (!empty($event['desc'])) {
|
||||
$o .= "<div>" . BBCode::convert($event['desc'], false, $simple) . "</div>";
|
||||
}
|
||||
|
||||
$o .= "<h4>" . L10n::t('Starts:') . "</h4><p>" . $event_start . "</p>";
|
||||
|
||||
|
||||
@@ -705,6 +705,10 @@ class GContact
|
||||
$doprobing = (((time() - $last_contact) > (90 * 86400)) && ((time() - $last_failure) > (90 * 86400)));
|
||||
}
|
||||
} else {
|
||||
$contact['location'] = defaults($contact, 'location', '');
|
||||
$contact['about'] = defaults($contact, 'about', '');
|
||||
$contact['generation'] = defaults($contact, 'generation', 0);
|
||||
|
||||
q(
|
||||
"INSERT INTO `gcontact` (`name`, `nick`, `addr` , `network`, `url`, `nurl`, `photo`, `created`, `updated`, `location`, `about`, `hide`, `generation`)
|
||||
VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d)",
|
||||
|
||||
Reference in New Issue
Block a user