Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / libs / optimize_functions.php
index 01ada00791a3e916e538435bf074446ba15b33de..1b22cbb9b7c73a7ca0f8199cfb48598770df1644 100644 (file)
@@ -44,12 +44,12 @@ if (!defined('__SECURITY')) {
 // Part taken from admin optimize module of PHPNuke (http://www.phpnuke.org)
 function repairOptimizeDatabase () {
        $ret = array();
-       $tot_data = 0; $tabs = 0; $opts = 0;
-       $tot_idx = 0; $total_gain = 0;
-       $tot_all = 0;
+       $tot_data = '0'; $tabs = '0'; $opts = '0';
+       $tot_idx = '0'; $total_gain = '0';
+       $tot_all = '0';
        $result = SQL_QUERY("SHOW TABLE STATUS FROM `{?__DB_NAME?}`", __FUNCTION__, __LINE__);
        $tabs = SQL_NUMROWS($result);
-       $ret['total_size'] = 0;
+       $ret['total_size'] = '0';
        $ret['total_tabs'] = $tabs;
        $ret['tables'] = array();
        if ($tabs > 0) {