Просмотр исходного кода

#5545 Albums: non-seo link for view media page: undefined variable

Aleksandr Trofimov 2 месяцев назад
Родитель
Сommit
eeae5b00d5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      inc/classes/BxDolPage.php

+ 1 - 1
inc/classes/BxDolPage.php

@@ -532,7 +532,7 @@ class BxDolPage extends BxDolFactory implements iBxDolFactoryObject, iBxDolRepla
                     } else {
                     } else {
                         $sSeoTitle = $oContentInfo->getContentTitle($sSeoParamValue);
                         $sSeoTitle = $oContentInfo->getContentTitle($sSeoParamValue);
                     }
                     }
-                    if (!$sSeoTitle)
+                    if (empty($sSeoTitle))
                         $sSeoTitle = base_convert((string)sprintf('%u', crc32($sSeoParamValue . BX_DOL_SECRET)), 10, 36);
                         $sSeoTitle = base_convert((string)sprintf('%u', crc32($sSeoParamValue . BX_DOL_SECRET)), 10, 36);
                 }
                 }
                 elseif ('profile_id' == $sSeoParamName) {
                 elseif ('profile_id' == $sSeoParamName) {