Przeglądaj źródła

#244 page with empty URI should return 404

Alex Trofimov 11 lat temu
rodzic
commit
3a0677a775
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      page.php

+ 1 - 1
page.php

@@ -17,7 +17,7 @@ check_logged();
 $oTemplate = BxDolTemplate::getInstance();
 
 $sURI = bx_process_input(bx_get('i'));
-$oPage = BxDolPage::getObjectInstanceByURI($sURI);
+$oPage = $sURI ? BxDolPage::getObjectInstanceByURI($sURI) : false;
 
 if ($oPage) {