Skip to content

Commit

Permalink
PHP 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
acrollet committed Sep 23, 2016
1 parent 6d5fd41 commit 7eeb4ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions includes/update.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7eeb4ac

Please sign in to comment.