Skip to content

Commit

Permalink
support PHP 5.4.x empty() syntax, which does not support expressions,…
Browse files Browse the repository at this point in the history
… only variables
  • Loading branch information
muli committed Sep 4, 2018
1 parent 486657a commit a61146c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/kalturamediagallery/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function local_kalturamediagallery_extend_navigation($navigation) {
global $USER, $PAGE, $DB;

// Either a set value of 0 or an unset value means hook into navigation block.
if (!empty(get_config('local_kalturamediagallery', 'link_location')))
{
$linkLocationConfig = get_config('local_kalturamediagallery', 'link_location');
if (!empty($linkLocationConfig)) {
return;
}

Expand Down

0 comments on commit a61146c

Please sign in to comment.