From 913bb09cc6ff6b706ddbb0d376a33e41d812e398 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 23 Dec 2011 14:34:42 +0000 Subject: [PATCH] PDO compat woo --- contrib/tag_editcloud/main.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/tag_editcloud/main.php b/contrib/tag_editcloud/main.php index 95bf9ab4..85bdc8b4 100644 --- a/contrib/tag_editcloud/main.php +++ b/contrib/tag_editcloud/main.php @@ -87,16 +87,13 @@ class TagEditCloud implements Extension { if ((gettype($image) == 'object') && (isset($image->tag_array)) && ($itags=$image->tag_array)) $itags=array_fill_keys(array_values($itags),true); - $result = $database->execute(" SELECT tag, FLOOR(LOG(2.7, LOG(2.7, count - ? + 1)+1)*1.5*100)/100 AS scaled, count + $tag_data = $database->get_all(" SELECT tag, FLOOR(LOG(2.7, LOG(2.7, count - ? + 1)+1)*1.5*100)/100 AS scaled, count FROM tags WHERE count >= ? ORDER BY ". (!$alphasort ? "count DESC":"tag"). " limit $maxcount", array($tags_min,$tags_min) ); - - - $tag_data = $result->GetArray(); $counter=1; foreach($tag_data as $row) { if((!$alphasort)&&($counter==$defcount)) $cloud .= "
";