]> git.mxchange.org Git - friendica.git/commitdiff
check for style.php existence before inclusion
authorfriendica <info@friendica.com>
Sun, 1 Apr 2012 23:21:55 +0000 (16:21 -0700)
committerfriendica <info@friendica.com>
Sun, 1 Apr 2012 23:21:55 +0000 (16:21 -0700)
mod/view.php

index 33aa23f44751c2c809bd49b1f244cd5952609cbf..15b3733b3fc974f45dcb21d2c2bec7a3728b6ef3 100644 (file)
@@ -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();