librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1238] use the right variable name


From: Clint Adams
Subject: [Librefm-commits] [1238] use the right variable name
Date: Wed, 06 May 2009 19:56:04 +0000

Revision: 1238
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1238
Author:   clint
Date:     2009-05-06 19:56:04 +0000 (Wed, 06 May 2009)
Log Message:
-----------
use the right variable name

Modified Paths:
--------------
    trunk/nixtape/data/TagCloud.php

Modified: trunk/nixtape/data/TagCloud.php
===================================================================
--- trunk/nixtape/data/TagCloud.php     2009-05-06 19:54:45 UTC (rev 1237)
+++ trunk/nixtape/data/TagCloud.php     2009-05-06 19:56:04 UTC (rev 1238)
@@ -54,13 +54,13 @@
             echo("ERROR");
         } else {
             foreach($res as $count => &$i) {
-                $i['size'] = $sizes[(int) ($count/(count($data)/7))];
+                $i['size'] = $sizes[(int) ($count/(count($res)/7))];
             }
             foreach($res as &$i){
                 $i['pageurl'] = Server::getArtistURL($i['artist']);
             }
-            sort($data);
-            return $data;
+            sort($res);
+            return $res;
         }
     }
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]