Closed (fixed)
Project:
AdaptiveTheme
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 May 2018 at 01:00 UTC
Updated:
16 Nov 2021 at 15:24 UTC
Jump to comment: Most recent
Comments
Comment #2
jacob.embree commentedComment #3
lamp5I can confirm that this patch fixes warnings. It should be committed to dev branch.
Comment #4
jacob.embree commentedComment #5
andileco commented+1 for the patch
Comment #6
alysaselby commentedWorked for php 7.2.16
Core 7.65
Adaptive Theme 7.x-3.4
Comment #7
aohrvetpv commentedThe API documentation for
theme_links()doesn't say that it can be NULL:https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_li...
Under what circumstances is
$vars['links']NULL? (How can this be reproduced?)Comment #8
jacob.embree commentedGood question. Now that https://git.drupalcode.org/project/drupal/commit/083a4ec is in it may not happen anymore, but I'll try without the patch for a while and see if it comes up anymore.
Either way,
!empty()makes more sense and will match core (https://www.drupal.org/node/2988184),Comment #9
arx-e commentedI have been seeing the same error with php 7.3 even with the latest drupal 7.68.
Patch fixed it.
Comment #10
danchadwick commentedI'm seeing this with PHP 7.4 and Drupal 7.73. Applied patch and PHP warning is gone.
+1 RTBC
And a tagged release would be great for those of us using PHP 7.
Comment #12
mattbloomfield commentedThis has been committed to the dev branch and will get a release very soon.