mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:43:41 +00:00
Improved logging, avoid fatal error
This commit is contained in:
parent
96e140a027
commit
c5c9fda93c
2 changed files with 3 additions and 2 deletions
|
@ -30,6 +30,7 @@ use Friendica\Core\Theme;
|
||||||
use Friendica\Core\Worker;
|
use Friendica\Core\Worker;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Event;
|
use Friendica\Model\Event;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
|
@ -129,7 +130,7 @@ function events_post(App $a)
|
||||||
];
|
];
|
||||||
|
|
||||||
$action = ($event_id == '') ? 'new' : 'event/' . $event_id;
|
$action = ($event_id == '') ? 'new' : 'event/' . $event_id;
|
||||||
$onerror_path = 'events/' . $action . '?' . http_build_query($params, null, null, PHP_QUERY_RFC3986);
|
$onerror_path = 'events/' . $action . '?' . http_build_query($params, '', '&', PHP_QUERY_RFC3986);
|
||||||
|
|
||||||
if (strcmp($finish, $start) < 0 && !$nofinish) {
|
if (strcmp($finish, $start) < 0 && !$nofinish) {
|
||||||
notice(DI::l10n()->t('Event can not end before it has started.'));
|
notice(DI::l10n()->t('Event can not end before it has started.'));
|
||||||
|
|
|
@ -292,7 +292,7 @@ class Event
|
||||||
|
|
||||||
$contact = DBA::selectFirst('contact', [], $conditions);
|
$contact = DBA::selectFirst('contact', [], $conditions);
|
||||||
if (!DBA::isResult($contact)) {
|
if (!DBA::isResult($contact)) {
|
||||||
Logger::warning('Contact not found', ['condition' => $conditions]);
|
Logger::warning('Contact not found', ['condition' => $conditions, 'cakkstack' => System::callstack(20)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Existing event being modified.
|
// Existing event being modified.
|
||||||
|
|
Loading…
Reference in a new issue