Drupal 7 update.php Notice: Array to string conversion in update_results_page() when running custom module update Notice: Array to string conversion in update_results_page() (line 212 of /Users/timdaff/Sites/local-quest-skills-for-life/update.php).


I'm getting the above notice after running update.php on the update function for my module.  It is a simple update to disable some modules I no longer require.  I'm not a PHP guru and it appears to me I have everything correct.

/**
 * Disabling modules. Implements hook_update_N().
 */
function features_controller_update_6009() {
    $return = array();
    $modules = array('views_cache_bully');
    $modules[] = 'gauth';
    $modules[] = 'oauth_common';
    $modules[] = 'oauth2_common';
    module_disable($modules,TRUE);
    $return[] = array('success' =&gt; TRUE, 'query' =&gt; 'Disabling views_cache_bully, oauth, gauth, gauth_login');
    return $return;
}
Per the docs, the return value should be a string (the message to show to the user after the update) or null. 

Currently you're returning an array, hence the notice.