From: friendica Date: Sun, 1 Apr 2012 23:21:55 +0000 (-0700) Subject: check for style.php existence before inclusion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f95db4382eb92f0e29ab3cef2f285ea6c20b2912;p=friendica.git check for style.php existence before inclusion --- diff --git a/mod/view.php b/mod/view.php index 33aa23f447..15b3733b3f 100644 --- a/mod/view.php +++ b/mod/view.php @@ -9,7 +9,8 @@ function view_init($a){ if ($a->argc == 4){ $theme = $a->argv[2]; $THEMEPATH = "view/theme/$theme"; - require_once("view/theme/$theme/style.php"); + if(file_exists("view/theme/$theme/style.php")) + require_once("view/theme/$theme/style.php"); } killme();