mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
dynamic delete icons for saved-search on network page
This commit is contained in:
parent
ac3df5fece
commit
513c1c0d68
5 changed files with 27 additions and 7 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue