From f95db4382eb92f0e29ab3cef2f285ea6c20b2912 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Apr 2012 16:21:55 -0700 Subject: [PATCH] check for style.php existence before inclusion --- mod/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.5