Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / optimize_functions.php
index 64308e77793dccdf489b3b1dc7dd273e366e2e4c..07b24ef8ab17bb308bc83dcd0441d7686e38732b 100644 (file)
@@ -58,7 +58,7 @@ function repairOptimizeDatabase () {
        $ret['tables'] = array();
 
        // Are there entries?
        $ret['tables'] = array();
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Fetch all rows
                while ($row = sqlFetchArray($result)) {
                        $tot_data = $row['Data_length'];
                // Fetch all rows
                while ($row = sqlFetchArray($result)) {
                        $tot_data = $row['Data_length'];