From 12ed13747a6204e200a2955e6fabebf61309e9e6 Mon Sep 17 00:00:00 2001 From: quix0r Date: Sat, 24 Nov 2012 23:44:18 +0000 Subject: [PATCH] Some no more needed variable rewritten --- inc/modules/admin/what-list_cats.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/modules/admin/what-list_cats.php b/inc/modules/admin/what-list_cats.php index 48069a94b8..7f687ad36a 100644 --- a/inc/modules/admin/what-list_cats.php +++ b/inc/modules/admin/what-list_cats.php @@ -153,9 +153,8 @@ if (isFormSent('add')) { // List already existing categories for editing while ($content = SQL_FETCHARRAY($result)) { // Put cat descriptions into variable for the selection box - $cat = $content['cat']; - if (strlen($cat) > 40) $cat = substr($cat, 0, 37) . '...'; - $CATS .= ''; + if (strlen($content['cat']) > 40) $content['cat'] = substr($content['cat'], 0, 37) . '...'; + $CATS .= ''; // Load row template and switch color $OUT .= loadTemplate('admin_list_cats_row', TRUE, $content); -- 2.39.5