I just ran into an issue where I wasn't passing in an array to variable_get_value(), I was passing in a default value (like variable_get()), and the variable module was throwing errors and white screening. It took me awhile to figure out my issue, but once I did it worked great. After looking at your code I realized that if you were to add an array check like this:

function _variable_options(array $options = array()) {

That would throw an error sooner, and be much easier to find the problem for any future developers.

CommentFileSizeAuthor
#2 checkarray-2675628-1.patch554 bytesmdfleury
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mdfleury created an issue. See original summary.

mdfleury’s picture

FileSize
554 bytes