- // Get optimization status
- $REP = '{--OPTIMIZE_STATUS_' . strtoupper($row_array[1]) . '--}';
-
- $OPT = '{--OPTIMIZE_STATUS_UNSUPPORTED--}';
+ // Get repair/optimization status
+ $repairStatus = '{--ADMIN_OPTIMIZE_STATUS_' . str_replace('__', '_', str_replace(',', '', str_replace('+', '', str_replace("'", '', str_replace(' ', '_', strtoupper($row_array[1])))))) . '--}';
+ $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_UNSUPPORTED--}';