diff options
author | friendica <info@friendica.com> | 2011-12-01 18:27:45 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-01 18:27:45 -0800 |
commit | 513c1c0d683fc770de7d9a78e0a83df9211bb4aa (patch) | |
tree | 384a8e056de800f6656ff9df3935e42f3e81bf07 /mod/network.php | |
parent | ac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4 (diff) | |
download | volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.tar.gz volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.tar.bz2 volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.zip |
dynamic delete icons for saved-search on network page
Diffstat (limited to 'mod/network.php')
-rw-r--r-- | mod/network.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php index e05791614..8df3f83df 100644 --- a/mod/network.php +++ b/mod/network.php @@ -68,17 +68,16 @@ function saved_searches($search) { $o = ''; - $r = q("select `term` from `search` WHERE `uid` = %d", + $r = q("select `id`,`term` from `search` WHERE `uid` = %d", intval(local_user()) ); $saved = array(); - - if(count($r)) { foreach($r as $rr) { $saved[] = array( + 'id' => $rr['id'], 'term' => $rr['term'], 'encodedterm' => urlencode($rr['term']), 'delete' => t('Remove term'), |