From 7eeb4acb0832e051d934971c5bbfd44b5be82fd2 Mon Sep 17 00:00:00 2001 From: Adrian Rollett Date: Fri, 23 Sep 2016 14:49:58 -0600 Subject: [PATCH] PHP 5.4 compatibility --- includes/update.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/update.inc b/includes/update.inc index 9f81a39..3369d4a 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -324,8 +324,13 @@ function updatedb_status() { foreach ($all_files as $module => $updates) { foreach ($updates as $key => $info) { - if (empty(db_select('better_db_updates', 'b')->fields('b', array())->condition('module_name', $module)->condition('update_filename', $info->name)->execute()->fetchAll())) { - + $update_exists = db_select('better_db_updates', 'b') + ->fields('b', array()) + ->condition('module_name', $module) + ->condition('update_filename', $info->name) + ->execute() + ->fetchAll(); + if (empty($update_exists)) { $docblock = better_db_updates_get_file_doc_block($info->uri); $update_description = better_db_updates_parse_block($docblock);