use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;
- $profile = DBA::selectFirst('profile', ['dob'], ['is-default' => true, 'uid' => $uid]);
+ $profile = DBA::selectFirst('profile', ['dob'], ['uid' => $uid]);
if (DBA::isResult($profile)) {
$tmp_dob = substr($profile['dob'], 5);
if (intval($tmp_dob)) {
if (DBA::isResult($profile)) {
$tmp_dob = substr($profile['dob'], 5);
if (intval($tmp_dob)) {
if (System::isDirectoryUsable($new_temppath)) {
// The new path is usable, we are happy
if (System::isDirectoryUsable($new_temppath)) {
// The new path is usable, we are happy
if (System::isDirectoryUsable($spoolpath)) {
// The new path is usable, we are happy
if (System::isDirectoryUsable($spoolpath)) {
// The new path is usable, we are happy