@@ -407,10 +407,14 @@ public function isAccountOnly() {
407
407
* @return bool
408
408
*/
409
409
public function isContactsBackend (): bool {
410
- return ($ this ->getAppValue (ConfigService::CIRCLES_CONTACT_BACKEND ) !== '0 ' );
410
+ return ($ this ->getAppValue (ConfigService::CIRCLES_CONTACT_BACKEND ) !== '0 '
411
+ && $ this ->getAppValue (ConfigService::CIRCLES_CONTACT_BACKEND ) !== '' );
411
412
}
412
413
413
414
415
+ /**
416
+ * @return int
417
+ */
414
418
public function contactsBackendType (): int {
415
419
return (int )$ this ->getAppValue (ConfigService::CIRCLES_CONTACT_BACKEND );
416
420
}
@@ -420,7 +424,7 @@ public function contactsBackendType(): int {
420
424
* @return bool
421
425
*/
422
426
public function stillFrontEnd (): bool {
423
- if ($ this ->getAppValue ( self :: CIRCLES_CONTACT_BACKEND ) !== ' 1 ' ) {
427
+ if (! $ this ->isContactsBackend () ) {
424
428
return true ;
425
429
}
426
430
@@ -438,7 +442,7 @@ public function stillFrontEnd(): bool {
438
442
* @return bool
439
443
*/
440
444
public function sendPasswordByMail () {
441
- if ($ this ->getAppValue ( self :: CIRCLES_CONTACT_BACKEND ) === ' 1 ' ) {
445
+ if ($ this ->isContactsBackend () ) {
442
446
return false ;
443
447
}
444
448
@@ -453,7 +457,7 @@ public function sendPasswordByMail() {
453
457
* @return bool
454
458
*/
455
459
public function enforcePasswordProtection (Circle $ circle ) {
456
- if ($ this ->getAppValue ( self :: CIRCLES_CONTACT_BACKEND ) === ' 1 ' ) {
460
+ if ($ this ->isContactsBackend () ) {
457
461
return false ;
458
462
}
459
463
@@ -552,7 +556,7 @@ public function configureRequest(NC19Request $request) {
552
556
}
553
557
554
558
// if ($this->getAppValue(ConfigService::CIRCLES_NON_SSL_LOCAL) === '1') {
555
- $ request ->setLocalAddressAllowed (true );
559
+ $ request ->setLocalAddressAllowed (true );
556
560
// }
557
561
}
558
562
0 commit comments