Fix possibly undefined variables
This commit is contained in:
parent
f8c782380f
commit
49c9b6f9ff
|
@ -105,6 +105,8 @@ class ForumManager
|
||||||
if (DBA::isResult($contacts)) {
|
if (DBA::isResult($contacts)) {
|
||||||
$id = 0;
|
$id = 0;
|
||||||
|
|
||||||
|
$entries = [];
|
||||||
|
|
||||||
foreach ($contacts as $contact) {
|
foreach ($contacts as $contact) {
|
||||||
$selected = (($cid == $contact['id']) ? ' forum-selected' : '');
|
$selected = (($cid == $contact['id']) ? ' forum-selected' : '');
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ class TagCloud
|
||||||
$contact = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
|
$contact = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
|
||||||
$url = System::removedBaseUrl($contact['url']);
|
$url = System::removedBaseUrl($contact['url']);
|
||||||
|
|
||||||
|
$tags = [];
|
||||||
foreach ($r as $rr) {
|
foreach ($r as $rr) {
|
||||||
$tag['level'] = $rr[2];
|
$tag['level'] = $rr[2];
|
||||||
$tag['url'] = $url . '?tag=' . urlencode($rr[0]);
|
$tag['url'] = $url . '?tag=' . urlencode($rr[0]);
|
||||||
|
|
|
@ -644,15 +644,17 @@ class Event extends BaseObject
|
||||||
*/
|
*/
|
||||||
private static function formatListForExport(array $events, $format)
|
private static function formatListForExport(array $events, $format)
|
||||||
{
|
{
|
||||||
|
$o = '';
|
||||||
|
|
||||||
if (!count($events)) {
|
if (!count($events)) {
|
||||||
return '';
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($format) {
|
switch ($format) {
|
||||||
// Format the exported data as a CSV file.
|
// Format the exported data as a CSV file.
|
||||||
case "csv":
|
case "csv":
|
||||||
header("Content-type: text/csv");
|
header("Content-type: text/csv");
|
||||||
$o = '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"' . PHP_EOL;
|
$o .= '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"' . PHP_EOL;
|
||||||
|
|
||||||
foreach ($events as $event) {
|
foreach ($events as $event) {
|
||||||
/// @todo The time / date entries don't include any information about the
|
/// @todo The time / date entries don't include any information about the
|
||||||
|
|
|
@ -274,6 +274,7 @@ class Term
|
||||||
'network' => $item['author-network'], 'url' => $item['author-link']];
|
'network' => $item['author-network'], 'url' => $item['author-link']];
|
||||||
$tag['url'] = Contact::magicLinkByContact($author, $tag['url']);
|
$tag['url'] = Contact::magicLinkByContact($author, $tag['url']);
|
||||||
|
|
||||||
|
$prefix = '';
|
||||||
if ($tag['type'] == TERM_HASHTAG) {
|
if ($tag['type'] == TERM_HASHTAG) {
|
||||||
if ($orig_tag != $tag['url']) {
|
if ($orig_tag != $tag['url']) {
|
||||||
$item['body'] = str_replace($orig_tag, $tag['url'], $item['body']);
|
$item['body'] = str_replace($orig_tag, $tag['url'], $item['body']);
|
||||||
|
|
|
@ -46,6 +46,7 @@ class Photo extends BaseModule
|
||||||
}
|
}
|
||||||
|
|
||||||
$customsize = 0;
|
$customsize = 0;
|
||||||
|
$photo = false;
|
||||||
switch($a->argc) {
|
switch($a->argc) {
|
||||||
case 4:
|
case 4:
|
||||||
$customsize = intval($a->argv[2]);
|
$customsize = intval($a->argv[2]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user