1
0
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:
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)) { 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;
} }
} }