Problem
Admin log purge does nothing (page reloads fast, no rows deleted). Caused by duplicate name="purge" on checkbox (value="1") and submit button (value="Purge"). On submit, button overrides checkbox in $_POST, so $purge becomes string "Purge" (truthy), but code expects int 1 → condition passes but logic skips or fails silently.
Solution
Rename the purge submit button to avoid conflict. Then update PHP to check the new name.
Code Changes
In templates/default/admin/admin_log.tmpl (line 125):Change:
HTML<input type="submit" class="form-button" name="purge" value="{$ubbt_lang['PURGE']}">To:
HTML<input type="submit" class="form-button" name="purge_submit" value="{$ubbt_lang['PURGE']}">In admin/admin_log.php (line 32):Replace:PHP
if ($purge && $purgevalue) {With:PHP
if (get_input("purge_submit", "post", "string") && $purgevalue > 0) {Apply, clear cache, test purge (e.g., 1 month). Deletes should work now.