Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
svg_image-3474961
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
svg_image-3474961
Commits
ecd2d4d4
Commit
ecd2d4d4
authored
3 years ago
by
Radu Rotari
Committed by
Yaroslav Lushnikov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3154892
by rrotari: Query condition '%s %s ()' cannot be empty
parent
aef7a498
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
svg_image.module
+1
-1
1 addition, 1 deletion
svg_image.module
with
1 addition
and
1 deletion
svg_image.module
+
1
−
1
View file @
ecd2d4d4
...
...
@@ -35,7 +35,7 @@ function svg_image_field_formatter_info_alter(array &$info) {
* @see template_preprocess_image_style()
*/
function
svg_image_preprocess_image_style
(
array
&
$variables
)
{
if
(
isset
(
$variables
[
'image'
][
'#access'
])
&&
!
$variables
[
'image'
][
'#access'
])
{
if
(
isset
(
$variables
[
'image'
][
'#access'
])
&&
!
$variables
[
'image'
][
'#access'
]
&&
!
empty
(
$variables
[
'image'
][
'#uri'
])
)
{
$files
=
\Drupal
::
entityTypeManager
()
->
getStorage
(
'file'
)
->
loadByProperties
([
'uri'
=>
$variables
[
'uri'
]]);
if
(
$files
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment