Another simple patch which removes error:
Notice: Undefined index: dev_query in ***\includes\database.mysql.inc on line 80

Comments

dries’s picture

variable_get is part of bootstrap.inc and therefore, it always exists. The test is probably redundant. Please test and resubmit. Thanks kuba.

chx’s picture

Assigned: Unassigned » chx
Status: Needs review » Needs work

I always forget to post this patch.

This line was part of the bootstrap patch, so this is my work -- I do not know what got in me when I mistyped which function exists.

Why this line is necessary? Because after the bootstrap patch you can not be sure that bootstrap.inc is there when you are running a db_query.

Also there is a need to check for $GLOBALS['conf']['dev_query']. I'll post immediately.

chx’s picture

Status: Needs work » Needs review
StatusFileSize
new2.35 KB

I came up with this easier to read, simpler code. I even -gasp- commented it.

chx’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.27 KB

Stupid, stupid me! I forgot that we merged init.inc with bootstrap.inc

chx’s picture

StatusFileSize
new2.26 KB
chx’s picture

StatusFileSize
new2.26 KB

how many stupid errors can one make? well, tomorrow I am thirty, I am surely will be much wiser :)

Steven’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD minus the left-overs ;).

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)