dynamic delete icons for saved-search on network page

This commit is contained in:
friendica 2011-12-01 18:27:45 -08:00
parent ac3df5fece
commit 513c1c0d68
5 changed files with 27 additions and 7 deletions

View file

@ -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'),