mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Use int instead of bool to help pgsql ;)
This commit is contained in:
parent
464919e93c
commit
358a41a8ac
@ -374,10 +374,10 @@ class App {
|
|||||||
if(!in_array($property->name, self::$index_properties)) {
|
if(!in_array($property->name, self::$index_properties)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$preferred = false;
|
$preferred = 0;
|
||||||
foreach($property->parameters as $parameter) {
|
foreach($property->parameters as $parameter) {
|
||||||
if($parameter->name == 'TYPE' && strtoupper($parameter->value) == 'PREF') {
|
if($parameter->name == 'TYPE' && strtoupper($parameter->value) == 'PREF') {
|
||||||
$preferred = true;
|
$preferred = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user