Merge pull request #5626 from annando/notices-oh-yeah
Removed notices, will it ever end?
This commit is contained in:
commit
d5c2c41b02
6 changed files with 21 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue