aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-25 19:06:17 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-25 19:06:17 +0200
commit221b31bcc6f16510c0f242e96ac696b2dd0eca58 (patch)
tree98b52d9fd582a715128665ffb2b7262f3e212289 /Zotlabs/Module/Directory.php
parent8879776d6436ed5257648a1873ddaa9486b25070 (diff)
downloadvolse-hubzilla-221b31bcc6f16510c0f242e96ac696b2dd0eca58.tar.gz
volse-hubzilla-221b31bcc6f16510c0f242e96ac696b2dd0eca58.tar.bz2
volse-hubzilla-221b31bcc6f16510c0f242e96ac696b2dd0eca58.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r--Zotlabs/Module/Directory.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index d92ea2c0e..2958e80dc 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -232,7 +232,7 @@ class Directory extends Controller {
$j = json_decode($x['body'],true);
if($j) {
- if($j['results']) {
+ if(isset($j['results']) && $j['results']) {
$results = $j['results'];
if($suggest) {
@@ -444,12 +444,12 @@ class Directory extends Controller {
}
else {
- if($_REQUEST['aj']) {
+ if(isset($_REQUEST['aj']) && $_REQUEST['aj']) {
$o = '<div id="content-complete"></div>';
echo $o;
killme();
}
- if(App::$pager['page'] == 1 && $j['records'] == 0 && strpos($search,'@')) {
+ if(App::$pager['page'] == 1 && (isset($j['records']) && $j['records'] == 0) && strpos($search,'@')) {
goaway(z_root() . '/chanview/?f=&address=' . $search);
}
info( t("No entries (some entries may be hidden).") . EOL);