Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
b71cf1a4
Commit
b71cf1a4
authored
12 years ago
by
Thomas Tanghus
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug oc-413: PHP fatal error in contacts page when no contacts in ownCloud.
parent
660951dc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/contacts/index.php
+8
-10
8 additions, 10 deletions
apps/contacts/index.php
with
8 additions
and
10 deletions
apps/contacts/index.php
+
8
−
10
View file @
b71cf1a4
...
...
@@ -43,17 +43,15 @@ if(count($categories) == 0) {
$vcaddressbookids
[]
=
$vcaddressbook
[
'id'
];
}
$vccontacts
=
OC_Contacts_VCard
::
all
(
$vcaddressbookids
);
if
(
count
(
$vccontacts
)
==
0
)
{
bailOut
(
OC_Contacts_App
::
$l10n
->
t
(
'No contacts found.'
));
}
$cards
=
array
();
foreach
(
$vccontacts
as
$vccontact
)
{
$cards
[]
=
$vccontact
[
'carddata'
];
}
if
(
count
(
$vccontacts
)
>
0
)
{
$cards
=
array
();
foreach
(
$vccontacts
as
$vccontact
)
{
$cards
[]
=
$vccontact
[
'carddata'
];
}
OC_Contacts_App
::
$categories
->
rescan
(
$cards
);
$categories
=
OC_Contacts_App
::
$categories
->
categories
();
OC_Contacts_App
::
$categories
->
rescan
(
$cards
);
$categories
=
OC_Contacts_App
::
$categories
->
categories
();
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment