From ab0d7f1ec06a0b4d9f7ecff877c598e53070513e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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.2