]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-optimize.php
Fixes + asserts
[mailer.git] / inc / modules / admin / what-optimize.php
index 16c12d8826a04d09abf93b44346bb6da1ae40f01..eb6c919711cba3c9fb6cd9886f10bd2ea4bd432a 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -63,7 +63,7 @@ foreach ($content['tables'] as $row_array) {
                $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_OPTIMIZED--}';
                $B1 = '<strong>'; $B2 = '<strong>';
                $gain_tabs++;
-       } elseif (count(explode(' ', $row_array[2])) == 0) {
+       } elseif (!isFilledArray(explode(' ', $row_array[2]))) {
                $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_' . strtoupper($row_array[2]) . '--}';
        }
 
@@ -79,7 +79,7 @@ foreach ($content['tables'] as $row_array) {
        );
 
        // Load row template and switch color
-       $OUT .= loadTemplate('admin_optimize_row', true, $row);
+       $OUT .= loadTemplate('admin_optimize_row', TRUE, $row);
 } // END - foreach
 
 // Remember rows
@@ -89,7 +89,7 @@ $content['rows'] = $OUT;
 $content['now_optimized'] = $gain_tabs;
 
 // Load main template
-loadTemplate('admin_optimize', false, $content);
+loadTemplate('admin_optimize', FALSE, $content);
 
 // [EOF]
 ?>