Skip to content

Commit

Permalink
Fixes #4897: Drupal 6 - Drush 8 updb returns errors on PHP 8 if no up…
Browse files Browse the repository at this point in the history
…dates should be run (#4898)

Co-authored-by: Flaviu Porutiu <flaviu@glitch.ro>
  • Loading branch information
glitchinfinity and Flaviu Porutiu committed Nov 10, 2021
1 parent f8026f9 commit 1ea2dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/drupal.inc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function system_watchdog($log_entry) {
* of the update process to the logging system.
*/
function _drush_log_update_sql($ret) {
if (count($ret)) {
if (is_array($ret) && count($ret)) {
foreach ($ret as $info) {
if (is_array($info)) {
if (!$info['success']) {
Expand Down

0 comments on commit 1ea2dbb

Please sign in to comment.