Skip to content
Snippets Groups Projects
Commit 722af58d authored by Bálint Csuthy's avatar Bálint Csuthy Committed by Mark Quirvien Cristobal
Browse files

Issue #3368620: Wrong precedence of the && operator

parent 6b88f57a
No related branches found
No related tags found
1 merge request!6Fix condition precedence
......@@ -121,7 +121,7 @@ class ZipFileBase extends FormatterBase {
*/
protected function getUrl(ZipFileItem $zip_file) {
$url = NULL;
if ($file = $zip_file->get('entity')->getValue() && $file_info = _field_zip_file($file)) {
if (($file = $zip_file->get('entity')->getValue()) && $file_info = _field_zip_file($file)) {
$url = $this->fileUrlGenerator->generateAbsoluteString($file_info['folder_uri']);
}
if ($this->getSetting('default_index')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment