Skip to content

Commit 447d300

Browse files
committed
Fixed syntax error introduced by merge conflicts
This fixes issue #113
1 parent 5be8f5f commit 447d300

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

lib/Part.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,30 +1561,15 @@ public function buildTemplateTableRowArray($table_type, $row_index, $additional_
15611561

15621562
switch ($caption) {
15631563
case 'hover_picture':
1564-
<<<<<<< HEAD
1565-
<<<<<<< HEAD
1566-
$picture_filename = str_replace(BASE, BASE_RELATIVE, $this->getMasterPictureFilename(true));
1567-
if($this->getMasterPictureAttachement() != null && !$this->getMasterPictureAttachement()->isFileExisting()) { //When filename is invalid then dont show picture.
1568-
$picture_filename = "";
1569-
}
1570-
$row_field['picture_name'] = strlen($picture_filename) ? basename($picture_filename) : '';
1571-
$row_field['small_picture'] = strlen($picture_filename) ? $picture_filename : '';
1572-
$row_field['hover_picture'] = strlen($picture_filename) ? $picture_filename : '';
1573-
=======
1574-
if ($this->getMasterPictureFilename(true) == null || $this->getMasterPictureAttachement() != null && !$this->getMasterPictureAttachement()->isFileExisting()) { //When filename is invalid then dont show picture.
1575-
=======
15761564
if ($this->getMasterPictureFilename(true) === null || ($this->getMasterPictureAttachement() !== null && !$this->getMasterPictureAttachement()->isFileExisting())) { //When filename is invalid then dont show picture.
1577-
>>>>>>> ccae29d... Improved formatting of previous commit.
15781565
$picture_filename = '';
15791566
} else {
1580-
$picture_filename = str_replace(BASE, BASE_RELATIVE, $this->getMasterPictureFilename(true));
1581-
}
1567+
$picture_filename = str_replace(BASE, BASE_RELATIVE, $this->getMasterPictureFilename(true));
1568+
}
15821569
$row_field['picture_name'] = \strlen($picture_filename) ? basename($picture_filename) : '';
15831570
$row_field['small_picture'] = \strlen($picture_filename) ? $picture_filename : '';
15841571
$row_field['hover_picture'] = \strlen($picture_filename) ? $picture_filename : '';
1585-
>>>>>>> d65ac7c... Part.php: fix hover_picture
15861572
break;
1587-
15881573
case 'name':
15891574
case 'description':
15901575
case 'comment':

0 commit comments

Comments
 (0)