1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Contacts: Use int instead of bool to help pgsql ;)

This commit is contained in:
Thomas Tanghus 2013-03-04 19:31:28 +01:00
parent 464919e93c
commit 358a41a8ac

View File

@ -374,10 +374,10 @@ class App {
if(!in_array($property->name, self::$index_properties)) {
continue;
}
$preferred = false;
$preferred = 0;
foreach($property->parameters as $parameter) {
if($parameter->name == 'TYPE' && strtoupper($parameter->value) == 'PREF') {
$preferred = true;
$preferred = 1;
break;
}
}