Fix possibly undefined variables

This commit is contained in:
Hypolite Petovan 2019-01-21 16:53:03 -05:00
parent f8c782380f
commit 49c9b6f9ff
5 changed files with 30 additions and 23 deletions

View file

@ -40,6 +40,7 @@ class TagCloud
$contact = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
$url = System::removedBaseUrl($contact['url']);
$tags = [];
foreach ($r as $rr) {
$tag['level'] = $rr[2];
$tag['url'] = $url . '?tag=' . urlencode($rr[0]);