use Friendica\Database\DBStructure;
function uexport_init(App $a) {
+ /// @todo Don't forget to move this global field as static field in src/Modules
global $dbStructure;
if (!local_user()) {
foreach ($rr as $k => $v) {
switch ($dbStructure[$table]['fields'][$k]['type']) {
case 'datetime':
- $p[$k] = !empty($v) ? $v : DBA::NULL_DATETIME;
+ $p[$k] = $v ?? DBA::NULL_DATETIME;
break;
default:
$p[$k] = $v;
foreach ($rr as $k => $v) {
switch ($dbStructure[$table]['fields'][$k]['type']) {
case 'datetime':
- $result[$k] = !empty($v) ? $v : DBA::NULL_DATETIME;
+ $result[$k] = $v ?? DBA::NULL_DATETIME;
break;
default:
$result[$k] = $v;