Skip to content

Commit

Permalink
Fixed some php8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Nov 11, 2023
1 parent d4ba467 commit 5fa0b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Frontend/Marker/BaseMarker.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function getDefaultMarkerArray()
*/
protected static function getEmptyInstance($classname)
{
if (!is_object(self::$emptyObjects[$classname])) {
if (!isset(self::$emptyObjects[$classname])) {
/* @var $dummy DomainModelInterface */
$dummyInstance = tx_rnbase::makeInstance($classname, ['uid' => 0]);
if ($dummyInstance instanceof DomainModelInterface
Expand Down
1 change: 1 addition & 0 deletions Classes/Utility/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static function getFileResource($fName, $options = [])
if (null === $incFile) {
$incFile = self::getFileName($fName);
}
$ret = '';
if ($incFile) {
// Im BE muss ein absoluter Pfad verwendet werden
$fullPath = Environment::isBackend() ? Environment::getPublicPath().$incFile : $incFile;
Expand Down

0 comments on commit 5fa0b75

Please sign in to comment.