diff options
author | Friendika <info@friendika.com> | 2011-07-21 17:55:15 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-21 17:55:15 -0700 |
commit | f4b4f61f66f2bbba7b62597db8162c1ceede2810 (patch) | |
tree | 05d55aec377fdca0481c1e1cd24eed157d643380 /mod/network.php | |
parent | 9290283040329875a73ee83fe3199501c5894d4b (diff) | |
download | volse-hubzilla-f4b4f61f66f2bbba7b62597db8162c1ceede2810.tar.gz volse-hubzilla-f4b4f61f66f2bbba7b62597db8162c1ceede2810.tar.bz2 volse-hubzilla-f4b4f61f66f2bbba7b62597db8162c1ceede2810.zip |
provide fake first arg to ajax updater
Diffstat (limited to 'mod/network.php')
-rw-r--r-- | mod/network.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/network.php b/mod/network.php index 28e540283..f05bf3e34 100644 --- a/mod/network.php +++ b/mod/network.php @@ -125,10 +125,10 @@ function network_content(&$a, $update = 0) { $o .= '<div id="live-network"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $_SESSION['uid'] - . "; var netargs = '" . substr($a->cmd,8) - . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '') - . ((x($_GET,'search')) ? '?search=' . $_GET['search'] : '') - . ((x($_GET,'star')) ? '?star=' . $_GET['star'] : '') + . "; var netargs = '" . substr($a->cmd,8) + . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') + . ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '') + . ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '') . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } @@ -208,7 +208,6 @@ function network_content(&$a, $update = 0) { $sql_extra .= " AND `item`.`body` REGEXP '" . dbesc(escape_tags($_GET['search'])) . "' "; - $r = q("SELECT COUNT(*) AS `total` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 |