When changing between higher levels of logging, e.g. from 5 to 4, I get

Notice: Undefined index: botcha_statistics_reset in botcha_admin_settings() (line 64 of modules/botcha/botcha.admin.inc).

Comments

PatchRanger’s picture

Status: Active » Needs review
StatusFileSize
new1.49 KB

Should break since there are only tests for functionality that does not work yet.

Status: Needs review » Needs work

The last submitted patch, botcha-undefined_variable_notice-1840724-test.patch, failed testing.

PatchRanger’s picture

Status: Needs work » Needs review
StatusFileSize
new3.68 KB
PatchRanger’s picture

A typo fixed.

PatchRanger’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)
PatchRanger’s picture

PatchRanger’s picture

Status: Patch (to be ported) » Needs review
PatchRanger’s picture

Status: Needs review » Fixed
iva2k’s picture

Status: Fixed » Needs review

After a quick glance at the patch I noticed the test may fail occasionally (one in a million) when both rand()'s return 0 and there is a bug not resetting the counts. It makes sense to use a simple change to rand(1,...) instead of rand(0,...) to ensure the counts are non-zero to start from and test is 100% reliable. Reference: PHP rand()

PatchRanger’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.