From: Roland Häder Date: Sat, 24 Nov 2012 23:44:18 +0000 (+0000) Subject: Some no more needed variable rewritten X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=ab0d7f1ec06a0b4d9f7ecff877c598e53070513e Some no more needed variable rewritten --- 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);