Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / libs / optimize_functions.php
index 66ec22b6322ddba1e5cd8f5ebe285f02acf71e45..4455cfcc8e4e96937b29c43a4f5375fa8e1e8644 100644 (file)
@@ -58,7 +58,7 @@ function repairOptimizeDatabase () {
        $ret['tables'] = array();
 
        // Do we have entries?
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // Fetch all rows
                while ($row = SQL_FETCHARRAY($result)) {
                        $tot_data = $row['Data_length'];