replace some strange foreach constructs with the proper variant
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@660 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
6b7217daf2
commit
05c2369507
1 changed files with 2 additions and 5 deletions
|
@ -217,8 +217,7 @@ if($currenttag!= '') {
|
||||||
id="bookmarks">
|
id="bookmarks">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
foreach(array_keys($bookmarks) as $key) {
|
foreach ($bookmarks as $key => &$row) {
|
||||||
$row =& $bookmarks[$key];
|
|
||||||
switch ($row['bStatus']) {
|
switch ($row['bStatus']) {
|
||||||
case 0:
|
case 0:
|
||||||
$access = '';
|
$access = '';
|
||||||
|
@ -234,9 +233,7 @@ if($currenttag!= '') {
|
||||||
$cats = '';
|
$cats = '';
|
||||||
$tagsForCopy = '';
|
$tagsForCopy = '';
|
||||||
$tags = $row['tags'];
|
$tags = $row['tags'];
|
||||||
foreach(array_keys($tags) as $key) {
|
foreach ($tags as $tkey => &$tag) {
|
||||||
|
|
||||||
$tag =& $tags[$key];
|
|
||||||
$cats .= '<a href="'. sprintf($cat_url, filter($row['username'], 'url'), filter($tag, 'url')) .'" rel="tag">'. filter($tag) .'</a>, ';
|
$cats .= '<a href="'. sprintf($cat_url, filter($row['username'], 'url'), filter($tag, 'url')) .'" rel="tag">'. filter($tag) .'</a>, ';
|
||||||
$tagsForCopy.= $tag.',';
|
$tagsForCopy.= $tag.',';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue