diff --git a/src/include/class-wc-retailcrm-uploader.php b/src/include/class-wc-retailcrm-uploader.php index 7d931d6..9f3ff19 100644 --- a/src/include/class-wc-retailcrm-uploader.php +++ b/src/include/class-wc-retailcrm-uploader.php @@ -270,7 +270,7 @@ if (class_exists('WC_Retailcrm_Uploader') === false) { } echo $page . ' page uploaded' . PHP_EOL; $page++; - } while (true); + } while ($page <= $countPages); } } }