Revize 77452e8e
Přidáno uživatelem Ondřej Fibich před více než 8 roky(ů)
application/controllers/export.php | ||
---|---|---|
$encoding = $form_data['encoding'];
|
||
}
|
||
|
||
$error = NULL;
|
||
|
||
// each content has specific query
|
||
switch ($content)
|
||
{
|
||
... | ... | |
}
|
||
catch (Exception $e)
|
||
{
|
||
$items = array();
|
||
$error = $e;
|
||
}
|
||
|
||
$filename = __('Members') . '.csv';
|
||
... | ... | |
}
|
||
catch (Exception $e)
|
||
{
|
||
$items = array();
|
||
$error = $e;
|
||
}
|
||
|
||
$filename = __('E-mails') . '.csv';
|
||
... | ... | |
break;
|
||
}
|
||
|
||
// empty result?
|
||
if (!count($items))
|
||
// empty result or error?
|
||
if ($error || !count($items))
|
||
{
|
||
status::error('Invalid data - no data available');
|
||
status::error('Invalid data - no data available', $error);
|
||
}
|
||
else
|
||
{
|
Také k dispozici: Unified diff
refs #1043: Export error display