aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_tag.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-12-21 23:49:12 +0000
committerrvelices <rv-github@modusoptimus.com>2006-12-21 23:49:12 +0000
commitb1a6316ca2f5f79891c6170049bfd06650847e49 (patch)
tree6875a8ac04560174d14ab4ed7a854ca66dbe04bf /include/functions_tag.inc.php
parentcab8f98c4ab88a0ad05f2359099c883675319084 (diff)
Very small corrections:
- syntax error (action.php) - language (call to l10n_dec and English language) - replace some fetch_array with fetch_assoc (less memory used) - removed one unnecessary assign_block_vars - removed meta name="robots" (conflict with notification.php) git-svn-id: http://piwigo.org/svn/trunk@1678 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_tag.inc.php')
-rw-r--r--include/functions_tag.inc.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/functions_tag.inc.php b/include/functions_tag.inc.php
index c01bb2fc7..42704d238 100644
--- a/include/functions_tag.inc.php
+++ b/include/functions_tag.inc.php
@@ -84,10 +84,8 @@ SELECT DISTINCT image_id
;';
$result = pwg_query($tags_query);
-
$tags = array();
-
- while ($row = mysql_fetch_array($result))
+ while ($row = mysql_fetch_assoc($result))
{
array_push($tags, $row);
}
@@ -109,10 +107,8 @@ SELECT id AS tag_id,
FROM '.TAGS_TABLE.'
;';
$result = pwg_query($query);
-
$tags = array();
-
- while ($row = mysql_fetch_array($result))
+ while ($row = mysql_fetch_assoc($result))
{
array_push($tags, $row);
}
@@ -269,7 +265,7 @@ SELECT tag_id, name, url_name, count(*) counter
$result = pwg_query($query);
$tags = array();
- while($row = mysql_fetch_array($result))
+ while($row = mysql_fetch_assoc($result))
{
array_push($tags, $row);
}