]> git.mjollnir.org Git - moodle.git/commitdiff
Check $themename to prevent warnings at high levels of debugging ...
authormoodler <moodler>
Mon, 26 Jan 2004 18:22:02 +0000 (18:22 +0000)
committermoodler <moodler>
Mon, 26 Jan 2004 18:22:02 +0000 (18:22 +0000)
theme/standard/styles.php

index 8c0853e44f721632188ae6b2af7d487afdf5bd7c..797aaf298e12c0c5a7501d6fc61f742817326da3 100644 (file)
@@ -2,6 +2,10 @@
 
 /// We use PHP so we can do value substitutions into the styles
 
+    if (!isset($themename)) {
+        $themename = NULL;
+    }
+
     $nomoodlecookie = true;
     require_once("../../config.php"); 
     $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename);