1
0
Fork 0

Removed notices, will it ever end?

This commit is contained in:
Michael 2018-08-17 03:19:42 +00:00
commit 0342f9e084
6 changed files with 21 additions and 4 deletions

View file

@ -449,7 +449,7 @@ function networkFlatView(App $a, $update = 0)
while ($term = DBA::fetch($result)) {
$posts[] = $term['oid'];
}
DBA::close($terms);
DBA::close($result);
$condition = ['uid' => local_user(), 'id' => $posts];
} else {

View file

@ -13,7 +13,7 @@ use Friendica\Core\System;
function smilies_content(App $a)
{
$smilies = Smilies::getList();
if ($a->argv[1] === "json") {
if (!empty($a->argv[1]) && ($a->argv[1] === "json")) {
$results = [];
for ($i = 0; $i < count($smilies['texts']); $i++) {
$results[] = ['text' => $smilies['texts'][$i], 'icon' => $smilies['icons'][$i]];