Commit 1f224afb authored by vuil's avatar vuil Committed by ilcho.vuchkov

Issue #3087786 by vuil: isset() issue in .module file

parent 5428211e
......@@ -105,7 +105,7 @@ function checklistapi_compact_mode_is_on() {
*/
function checklistapi_get_checklist_info($id = NULL) {
$definitions = &drupal_static(__FUNCTION__);
if (!isset($definitions)) {
if (NULL !== $definitions) {
// Get definitions.
$definitions = \Drupal::moduleHandler()->invokeAll('checklistapi_checklist_info');
foreach ($definitions as $key => $value) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment