aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:04:51 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:04:51 +0000
commit05c23695077062ea6948b7c5603848e941c6e9df (patch)
treea49d27e2777477a93df5ec5bec30b459ec006b0c /data/templates
parent6b7217daf298be65347205aa7a0fee17ff37b87c (diff)
downloadsemanticscuttle-05c23695077062ea6948b7c5603848e941c6e9df.tar.gz
semanticscuttle-05c23695077062ea6948b7c5603848e941c6e9df.tar.bz2
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
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/bookmarks.tpl.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php
index 0e9ac95..0050ec8 100644
--- a/data/templates/bookmarks.tpl.php
+++ b/data/templates/bookmarks.tpl.php
@@ -217,8 +217,7 @@ if($currenttag!= '') {
id="bookmarks">
<?php
- foreach(array_keys($bookmarks) as $key) {
- $row =& $bookmarks[$key];
+ foreach ($bookmarks as $key => &$row) {
switch ($row['bStatus']) {
case 0:
$access = '';
@@ -234,9 +233,7 @@ if($currenttag!= '') {
$cats = '';
$tagsForCopy = '';
$tags = $row['tags'];
- foreach(array_keys($tags) as $key) {
-
- $tag =& $tags[$key];
+ foreach ($tags as $tkey => &$tag) {
$cats .= '<a href="'. sprintf($cat_url, filter($row['username'], 'url'), filter($tag, 'url')) .'" rel="tag">'. filter($tag) .'</a>, ';
$tagsForCopy.= $tag.',';
}